English-like Python

Erik Max Francis max at alcyone.com
Tue Jan 20 22:58:49 CET 2009


Joe Strout wrote:

> Aaron Brady wrote:
> 
>> I think it would be a good step if you could make some sensible
>> interpretation of a typical statement without its parentheses.
>>
>> f "abc" 123
>> -->
>> f( "abc", 123 )
>>
>> It would be just the thing in a couple of situations...
> 
> Such a language is possible -- take a look at REALbasic sometime.  RB 
> certainly has its problems (mainly bugs), but the language syntax is 
> beautiful.  To your point, parentheses are not required around any 
> method call that (1) has no return value, or (2) requires no parameters. 

Logo, of all things, doesn't require parentheses at all, since functions 
("procedures") take a fixed number of arguments.  Parentheses are only 
required when you're adding optional arguments.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
   Conversation is the enemy of good wine and food.
    -- Alfred Hitchcock



More information about the Python-list mailing list