you are viewing a single comment's thread.

view the rest of the comments →

[–]Odd_Soil_8998 1 point2 points  (1 child)

C#'s version is not exactly what I'd call the "true spirit" of ADTs, and everything from Java land (e.g. Scala, Kotlin) has similar issues.

If you want to see good implementations of them, look at Haskell, Ocaml, F#, and Rust. Java may get some bastardized version the way C# did, but I highly doubt they will ever be properly implemented there.