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

one issue is it’s not a type alias but a type encapsulation. This have a cost at runtime, it’s not like in some functionnals languages a non cost abstraction.


Correctness is more important than runtime costs.


In languages like kotlin and rust you can have a type encapsulation like this that does not exist at runtime




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: