4 ms·
Ok, but if someone claims to have read all the Python manuals and wrote something like > Python has two types of empty string, array('u',) and "" you'd pro
by em500 5y ago
Ok, but if someone claims to have read all the Python manuals and wrote something like
> Python has two types of empty string, array('u',) and ""
you'd probably conclude that hasn't really understood what he read.
- mellavora 5y agodoes f"" also count as an empty string? Because oddly enough, I don't see anything in that syntax which suggests that it is really a function which returns a formatted version of whatever is in the "".
- kafkaIncarnate 5y agoFor Python (at least Python3) a better example might have been b"" and "". They are not equal, and they are empty. You have to decode or encode one, for instance, and different functions return different things. Then different functions might return False, None, (), {}, etc. This OP complaint seems like weird nitpicking about R. Many languages have different empty/null-types for different variable-types. Also, don't get me started on "nulls" in C, C-strings, C++ strings, or memory allocation. All languages are complicated.