Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



That'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.


> 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.


They want text, and they want line endings that work, but that doesn't mean they want file contents secretly changed as they go.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: