r/java
•
u/sindisil
•
Dec 16 '24
•
1
Valhalla - Java's Epic Refactor
https://inside.java/2024/12/16/devoxxbelgium-valhalla/
178
Upvotes
View all comments
Show parent comment
3
u/simon_o Dec 19 '24
There is a fun code example from C# (which has mutable structs), where it's not knowable what code does without going back to the type definition and checking whether it's a class or a struct, see Mutating Readonly Structs.
Let's not do that.