3 ms·
How are generics backward-incompatible? They would obviously affect forward compatibility, but what previously valid programs would have to become invalid with
by chc 11y ago
How are generics backward-incompatible? They would obviously affect forward compatibility, but what previously valid programs would have to become invalid with the introduction of generics? (Incidentally, as an interesting contrast, this GOMAXPROCS default change will break some existing programs.)
- knodi 11y agoHow will GOMAXPROCS default change break existing programs?
- chc 11y agoPer the OP: "Increased parallelism could make bugs in racy programs more likely to cause crashes or other problems. The setting of GOMAXPROCS=1 may have thus far let those bugs go undetected. Raising it may therefore make buggy programs less reliable."
- ecnahc515 11y agoGOMAXPROCS isn't really a language feature, that's all implementation specific AFAIC.
- prodigal_erik 11y agoThe only way to keep old code working would be to add generics but continue having an awful standard library that never uses them.