June 17, 2009
1:28 a.m.
Bruce Leban wrote:
Personally, if I had a time machine I would pick a syntax like set{...} over set([...]) but I don't have a time machine and even if I did I don't think I'd use it for that. The difference is that the former is special syntax, while the latter isn't. No matter what I do to the the varible r, r"string" is still a string, while set([...]) can be perverted.
However, given what we've got I can't really say that ([ instead of { is that big a deal.
[snip] You can have any iterable between the (...); it's just that the iterable happens to be a list literal.