James Dennett wrote:
> How about
>
> x = x / y unless y == 0 then 0;
>
> or
>
> x = x / y except if y == 0 then 0;
>
> I can't help thinking that people will rebel against a language feature
> which uses the term "whence"!
>
> -- James "Painting the Bicycle Shed" Dennett

I'd vote against the except, and just go with:

x = x / y if     y == 0 else 0;
x = x / y unless y == 0 then 0;


Along these lines, what about allowing "if-then-else" expressions to end 
with a semi-colon? So then we'd have:

print$ if 1 == 2 then "hello" else "goodbye"; endl;

instead of:

print$ if 1 == 2 then "hello" else "goodbye" endif; endl;

-e

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to