periodic reminder that your favorite programming language is garbage because it doesn't allow trailing commas on argument lists
-
-
I think it looks hideous, but it works. Hell, to define a literal tuple sometimes it's MANDATORY, like: foo = (1,)
-
well you don't use it on single line constructs where it looks hideous obviously, at least when it's optional
-
Yeah I think the comma-less alternative there would be like tuple([1]), which ... gross.
-
Although, I'm slightly annoyed that the empty primitives are '', "", [], {}, (), and set() ಠ_ಠ
-
keyword-based literal constructors? what the fuck is this, PHP
-
The problem is that sets and dictionaries would both be {}. { 'a' : 1, 'b' : 2 } vs. {1,2} I would've voted for {} and {,} or something.
-
enh, dicts aren't hashable so you can't use them as dict keys, so just make sets {{}}
-
That looks ... sapphic.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
