3 ms·
An inconsistent and variable default would be significantly, unfathomably, worse than a "bad" default. And I don’t even have to imagine it, because there’s an
by masklinn 6y ago
An inconsistent and variable default would be significantly, unfathomably, worse than a "bad" default.
And I don’t even have to imagine it, because there’s an example right in the python builtins: open in text mode will use… whatever garbage `locale.getpreferredencoding()` returns. Fantastic way to create hard to reproduce bugs.
- Dylan16807 6y agoThat's because using non-binary mode is bad, not because variable defaults are bad. > An inconsistent and variable default would be significantly, unfathomably, worse than a "bad" default. Even if you're right on that, I will still say that defaulting to no compression is significantly worse than going "error missing library" for people that have a partial install.
- masklinn 6y ago> That's because using non-binary mode is bad Text mode is perfectly good, it’s what users want in a good 90% of cases. Possibly more.
- Dylan16807 6y agoThey want text, and they want line endings that work, but that doesn't mean they want file contents secretly changed as they go.