3 ms·
Mutable value types in C# have a place, but they also come with plenty of pitfalls. Java tends to lean in a direction where those don't exist. Cf. captured vari
by ygra 5y ago
Mutable value types in C# have a place, but they also come with plenty of pitfalls. Java tends to lean in a direction where those don't exist. Cf. captured variables in closures as well: having to treat them as final avoids a number of problems.