Luke Palmer wrote:
>On Sun, 22 Sep 2002, Markus Laire wrote:
>You know, the idea that square brackets are the only things that can make
>lists is starting to really appeal to me. Similar for squiggles and
>
<snip>
>So parens really do provide grouping, not list constructing. Thus, this
>can stay:
>
> print("foo ", "bar");
>
>It also provides a really nice visual clue: If and only if you see [],
>there's a list creeping around. Before, the "and only if" could not be
>included.
>
This could take care of ambiguous situations like:
print (1, 2, 3), "\n";
I don't know how many times I've done that and wanted it to print
"123\n". I know it's a feature, but it can be a bug in my writing. Now
it'd be unambiguous:
print [1, 2, 3], "\n";
--matt diephouse