Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But what do you name the variable in the languages that don't support such a constrained type feature (the majority of them)?


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: