logoalt Hacker News

usrusrtoday at 8:42 AM2 repliesview on HN

Value types are a concept very far away from the "magic black box organism" school of OOP thinking. It's not a novel way of doing classic OOP (does anyone still do that?), it's a way for a language born in OOP ideology get one step further into the post-OOP world.


Replies

layer8today at 8:59 AM

That’s just not true, you can have a completely value-based language without OOP that still doesn’t leak implementation details of the values, while also supporting UDTs.

show 1 reply
DarkNova6today at 10:59 AM

Not if you do DDD where a calue type has exactly those semantics and for record types this is actually a free lunch.