| ▲ | usrusr 8 hours ago | ||||||||||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | layer8 7 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
| ▲ | DarkNova6 5 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
Not if you do DDD where a calue type has exactly those semantics and for record types this is actually a free lunch. | |||||||||||||||||||||||||||||||||||||||||