5 ms·
I explained in detail why value classes will not outdate this criticism. The syntax is not the point - the point is the very fact that they had to add new synta
by bheadmaster 1mo ago
I explained in detail why value classes will not outdate this criticism. The syntax is not the point - the point is the very fact that they had to add new syntax means that they couldn't retrofit the semantics into the old syntax. Which means it's nowhere near as general and universal solution as would be required to truly make the criticism outdated - in fact it's quite limited. You can't even modify the fields, which is required for almost every scenario where value classes would be useful. For anything non-trivial, you either need to pay the immutability tax or the GC tax.
> Benchmarks prove otherwise
Well, good luck running the benchmarks on your production servers.