-
-
-
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.
- 3 more replies
New conversation -
-
-
var wat = new List<string> { "Actually", "C#", "does", };
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.
