3 ms·
C# could do the "effective final" rule, same as Java did - don't allow a variable to be closed over if it's mutated anywhere. And yet it didn't - which made im
by int_19h 8y ago
C# could do the "effective final" rule, same as Java did - don't allow a variable to be closed over if it's mutated anywhere.
And yet it didn't - which made implementation that much more complex, since capturing mutable locals requires lifting them to extend lifetime.