| ▲ | cm2187 5 hours ago | ||||||||||||||||
But what I don’t get reading the original article is that they present how to insert struct in an object oriented language as an intractable problem, whereas a good implementation with .net (as far as I can tell) has been out there for nearly 30 years. And C# was shameless about stealing from other languages. | |||||||||||||||||
| ▲ | Someone 4 hours ago | parent | next [-] | ||||||||||||||||
> how to insert struct in an object oriented language as an intractable problem, whereas a good implementation with .net (as far as I can tell) has been out there for nearly 30 years. And C# was shameless about stealing from other languages. I think (but may be wrong) their concerns are about the insert part. C# always had structs, Java wants to add them in a backward-compatible way. They want, for example, existing generic container classes pulled in from a .jar (i.e. already compiled) to support Java value types. | |||||||||||||||||
| ▲ | pjmlp 4 hours ago | parent | prev | next [-] | ||||||||||||||||
The problem is how to do it without breaking ABI, 30 years of Maven Central is very relevant, Java isn't doing a Python over value types. | |||||||||||||||||
| |||||||||||||||||
| ▲ | Zardoz84 3 hours ago | parent | prev [-] | ||||||||||||||||
Dlang this this before. You have classes and struts, with different semantics. | |||||||||||||||||