Why is Python popular, while Lisp and Scheme aren't?

Greg Ewing see_reply_address at something.invalid
Wed Nov 13 18:35:32 EST 2002


Carl Banks wrote:

> Martin Maney wrote:
> 
> A new syntax would be the best solution, IMHO.  For example, the
> suppose statement:
> 
>     suppose:
>         do_A()
>     if test_based_on_A():
>         take_action_A()
>     elsuppose:
>         do_B()
>     if test_based_on_B():
>         take_action_B()


Some time ago I proposed a loop-and-a-half syntax that went

    while:
       do_A()
    gives test_based_on_A():
       ...

There could be a similar variant for the if-statement:

    if:
       do_A()
    gives test_based_on_A():
       take_action_A()
    elif:
       do_B()
    gives test_based_on_B():
       take_action_B()


-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list