On Fri, 2007-05-18 at 11:35 +0200, Rhythmic Fistman wrote:
> > Message: 4
> > Date: Thu, 17 May 2007 17:44:08 +1000
> > From: skaller <[EMAIL PROTECTED]>
> > I want to begin discussion how we should make the new grammar
> > and extension system look, so please comment! Vent your
> > pet hates and complaints, make constructive and useless
> > suggestions, be prepared for controversy,  be willing to make
> > radical suggestions!
> 
> "if" statement sucks, it's about 50 characters just to do
> a conditional, to c's if(a) b;

You can write

        b when a;

if you want (for Perl-heads).
You can also write

        if a do b; done;

for a statement. Or ..

        match b with 
        | case 1 of 2 => { b; } 
        | _ => {}
        endmatch;

Hehe. I hate C's if because it needs brackets:

        if a then 

reads better to me than if(a)  .. but then I learned
Pascal long before C.


-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to