3 ms·
While I could agree with some of the points, here are some comments: range() - "Perl has trained me", well lolcode taught be that I end script with KTHNXBYE, b
by viraptor 17y ago
While I could agree with some of the points, here are some comments:
range() - "Perl has trained me", well lolcode taught be that I end script with KTHNXBYE, but that's not the reason to expect it in other languages :( It's just an arbitrary choice and there's no reason to discuss about it really.
Python is happy to do nothing - Meet PyLint. Perl has "use warning", python has PyLint, which will tell you that:
C: 1: Black listed name "foo"
W: 3: Statement seems to have no effect
Unicode support is a mess - I really hate how it's done, but it definitely is not a mess. It's clean and strict. It's just hard to achieve some stuff with it. I really miss a "just give me an ascii version and ignore any errors, because I really don't care in this case" option...
The rest... I can see why you might not like them, but I don't see them as design errors in any specific way.
- conesus 17y ago> I really miss a "just give me an ascii version and ignore any errors, because I really don't care in this case" option... You can use options to either ignore or replace invalid characters. >>> unicode('\x80abc', errors='strict') Traceback (most recent call last): File "<stdin>", line 1, in ? UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128) >>> unicode('\x80abc', errors='replace') u'\ufffdabc' >>> unicode('\x80abc', errors='ignore') u'abc'