2 ms·
But what do you name the variable in the languages that don't support such a constrained type feature (the majority of them)?
by shawnz 6y ago
But what do you name the variable in the languages that don't support such a constrained type feature (the majority of them)?
- SideburnsOfDoom 6y agoObject-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 https://news.ycombinator.com/item?id=24374372 http://wiki.c2.com/?ValueObject http://wiki.c2.com/?ValueObject