Y
Hacker News
new
|
ask
|
show
|
jobs
by
shawnz
2107 days ago
But what do you name the variable in the languages that don't support such a constrained type feature (the majority of them)?
1 comments
SideburnsOfDoom
2107 days ago
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
link
https://news.ycombinator.com/item?id=24374372
http://wiki.c2.com/?ValueObject