Steve Ferg wrote:
I've often thought that a language with this kind of block-free syntax
would be nice and intuitive:

    if <condition> then
        do stuff
    elif <condition> then
        do stuff
    else
        do stuff
    endif

Note that you do not need block delimiters.

Obviously, you could make a more Pythonesque syntax by using a colon
rather then "then" for the condition terminator.  You could make it
more PL/I-like by using "do", etc.

You can write shell scripts using if ... fi, but other than that I
don't recall a language with this kind of syntax.

It's the same syntax, with `fi` written instead of `endif` -- not sure why the difference in keyword is that big of a deal to you.

As others have pointed out, either way, there are quite a few languages that use this type of syntax.

--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
 San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
  Mona Lisa / Come to discover / I am your daughter
   -- Lamya
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to