6 ms·
I believe sciencerobot is saying that "<>" could be used as the empty set literal.
by uraza 14y ago
I believe sciencerobot is saying that "<>" could be used as the empty set literal.
- jmmcd 14y agoOh I see, thanks. "s=<>" is less ugly than "s={@}" but, obviously, is inconsistent with "s={1, 2, 3}".
- ekimekim 14y agoThen fix that: s = <1,2,3> I think that's better than using the same brace-type for sets and dicts anyway, and it can't be as confusing as () == tuple(), (x) == x, (x,) == tuple([x]).