On 07/04/2009, at 12:30 AM, Rhythmic Fistman wrote:
> Any chance of a more succint conditional if?
> Something without the obligatory else {} endif;
The functional if obviously MUST have the else branch: you have
to provide a value for both the true and false conditions.
The "endif" is there to ensure the language is unambiguous.
If you're writing
if x then y else {} endif;
you could be using the procedural if:
if x do y; done;
You still need a terminator "done;" to ensure the language
isn't ambiguous in the general form, however the else branch
is not required (assumed to be {} as you requested).
There are some short forms of this:
if x goto y;
if x call y(..);
doesn't require the terminator for example.
Check in lib/nugram.flxh for a complete list.
--
john skaller
[email protected]
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language