Language mavens: Is there a programming with "if then else ENDIF" syntax?

Mark Dickinson dickinsm at gmail.com
Tue Nov 17 11:15:40 CET 2009


On Nov 16, 4:54 pm, Steve Ferg <steve.ferg.bitbuc... at gmail.com> 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.

GAP uses almost exactly this syntax, but with 'fi' instead of 'endif':

http://www.gap-system.org/Manuals/doc/htm/ref/CHAP004.htm#SECT016

Mark



More information about the Python-list mailing list