After Parrot, what next?

Chui Tey teyc at bigfoot.com
Sat Apr 7 07:04:50 EDT 2001


A close relative  of python does this:

<dtml-in getLines>
   <dtml-var sequence-item>
</dtml-in>

Roy Smith <roy at panix.com> wrote in message
news:roy-8B6536.22174906042001 at news.panix.com...
> A bunch of us were discussing the new Parrot syntax (i.e things like
> "left_angle_bracket_right_angle_bracket") today and came up with a great
> idea for a new language syntax, which mixes the best ideas of Parrot and
> XML.  Instead of:
>
>    for line in sys.stdin.getlines():
>       print line
>
> or
>
>    while (<>) {
>       print;
>    }
>
> you'd do:
>
>    <for>
>    <controlvariable>line</controlvariable>
>    <iteratorlist>getlines</iteratorlist>
>    <body>
>    <statement>
>    <print>line</print>
>    </statement>
>    </body>
>    </for>
>
> So, what'ya think?  The really nice thing about it is that it's easy to
> parse, so implementing smart syntax-coloring editors should be a snap.
> Doesn't use either semicolons or whitespace, so it should offend equally
> people from varied backgrounds :-)





More information about the Python-list mailing list