Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
shawnz
on Sept 4, 2020
|
parent
|
context
|
favorite
| on:
A word for a value between 0 and 1 (inclusive)
But what do you name the variable in the languages that don't support such a constrained type feature (the majority of them)?
SideburnsOfDoom
on Sept 4, 2020
[–]
Object-oriented languages have equivalent constructs, so I would say that this is doable in the vast majority of languages in common use:
https://news.ycombinator.com/item?id=24374372
http://wiki.c2.com/?ValueObject
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: