On Jan 25, 2008 10:01 AM, Leif Walsh <[EMAIL PROTECTED]> wrote:
> On Jan 25, 2008 12:37 PM, Christian Heimes <[EMAIL PROTECTED]> wrote:
> > The pipe char is ambiguous because is no direction. It was suggested and
> > rejected last year.
>
> Out of almost-pure devil's advocacy, has <> been considered?  My first
> instinct is that it would be ambiguous with less-than/greater-than,
> but if someone can convince me otherwise, might it work?  After all,
> it's the only other balanced pair of punctuation I see on my keyboard.

No, there are too many syntactic situations where this would make the
grammar ambiguous or tortuous. We don't want to move beyond LL(1).
(Apart from parsing indentation and nested parentheses, of course --
which actually reminds me or another issue with using <> as brackets:
the lexer can't know whether a particular < or > is used as a bracket
or not, so it can't keep track of nesting like it does for (), [] and
{}. So <> would always remain a second-class citizen.)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to