logoalt Hacker News

DarkNova6today at 11:03 AM1 replyview on HN

C# actually has a fair amount of gotchas and Java aims to make these explicit. So where C# mostly copied C from a low level perspeCtive, the Java guys approached this high level and analyzed in detail which constraints give you what kind of benefit.

So where in other languages, the struct/class taxonomy is binary, Java allows more granular control, reflection the semantics of the underlying domain. Snd as it turns out, structs have a wide range of footguns, especially in a parallel context.


Replies

jaentoday at 1:25 PM

Could you actually explain/exemplify any of the gotchas and what's been made better (or is this just handwaving)?

show 3 replies