r/programming • • Jan 16 '20

Records Come to Java

https://blogs.oracle.com/javamagazine/records-come-to-java
59 Upvotes

65 comments sorted by

View all comments

9

u/falconfetus8 Jan 17 '20

Your move, C#.

3

u/TarMil Jan 17 '20

C# has had pretty much exactly this as a design proposal for ages... I think it was first proposed for C# 6, now C# 8 is out and it's still just a proposal :/

2

u/falconfetus8 Jan 17 '20

That's just it: it's been a proposal. It hasn't shown any signs of actually being implemented any time soon. Java, on the other hand, looks like it's already decided on a design and is now going for it.

As a C# lover, I just want a damn record type already!

1

u/TarMil Jan 17 '20

Yes that wasn't a counterpoint, I was complaining with you :)

Even though I mostly use F#, I often enough interact with C# types that I would trust more with their immutability and comparability if they were declared as records.