After Parrot, what next?

Roy Smith roy at panix.com
Fri Apr 6 22:17:49 EDT 2001


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