logoalt Hacker News

dagmxyesterday at 3:31 PM4 repliesview on HN

This is about changing the default.

The issue with defaults is that people have projects that implicitly expect the default to be static.

So when the default changes, many projects break. This is maybe fine if it’s your own project but when it’s a few dependencies deep, it becomes more of an issue to fix.


Replies

reactordevyesterday at 3:46 PM

If you’re relying on defaults, and upgrade, that is entirely your fault. Don’t hold everyone in the world back because you didn’t want to codify your expectations.

dietr1chyesterday at 3:51 PM

So it has the added benefit of having people learn how to set up their projects properly? Great.

bluGillyesterday at 4:42 PM

C++ is very good at compatibility. If your code breaks when the standard changes, odds are it was always broke and you just didn't know. C++ isn't perfect, but it is very good.

show 1 reply
MichaelZuoyesterday at 3:38 PM

That sounds more like a problem of nonsensical assumptions… what possible expectation could there have been that GCC would never change this in the future?

show 1 reply