optional then?
Torsten Anders
t.anders at qub.ac.uk
Mon May 19 23:14:54 CEST 2003
On Monday, May 19, 2003, at 08:51 pm, Denys Duchier wrote:
> gabor.szokoli at vanderbilt.edu (Gabor Szokoli) writes:
>> Would it make sense to make the "then" part of the if-then-else
>> optional just like the "else" part is?
> Is there any programming language in which the
> "THEN" part is optional?
In Lisp you have both 'when' (quasi if without else) and 'unless' (quasi if
without then). 'unless' is easy to read for me. Lisp is full of special
forms (control structures) because it does not use keywords. But I doubt it
is a good idea to add more keywords to Oz.
Best,
Torsten
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs at mozart-oz.org.
More information about the mozart-users
mailing list