Dang it Erick and I are Pythonistas .. and we can't resist 
copying Python ideas :)

I'm thinking of:

val x = x / y unless y == 0 whence 0;

This is similar to Python 2.5:

x = x / y if y != 0 else 0

except the polarity is reversed. 'whence' is a mouthful,
but the correct English is actually

val x = x / y unless y == 0 in which case 0;

:)


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

-------------------------------------------------------------------------
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