3 ms·
agreed it is personal; this python snippet is an example that I've always had a distaste for, but which others love foo = 1 if true else 0 I think this was de
by tmp_eSGPhx 3y ago
agreed it is personal; this python snippet is an example that I've always had a distaste for, but which others love
foo = 1 if true else 0
I think this was designed because most of the time foo should equal 1, and they want the code to highlight the default.
I don't like it because reading left to right it takes a few characters to realize it is a branching statement.