Re: [q-lang-users] RFC: Conditional syntax
Brought to you by:
agraef
From: Keith T. <kaz...@ea...> - 2006-06-01 06:31:44
|
Patrick Albuquerque wrote: >> Albert Graef wrote: >> >(Ex. 3) >> > >> >abs X = cond (X<0, -X; true, X); >> >> Arrgh, I just noticed that cond is already used in clib >> for pthread conditions. Too bad. :( Can anyone think >> of another nice name for the conditional operation? > > Perhaps? > > abs X = choose (X<0, -X; true, X); Wrt today's nominees, I like "choose" best. Here is one for tomorrow? abs X = branch (X<0, -X; true, X); Cheers, Keith |