> if
> . {1 iso {x % 2}}
> . \ 'odd
> . :else
> . \ 'even

My complaint with this is that it doesn't sufficiently distinguish
tests from branches. Especially since 'if' in arc/wart can have more
than two branches. It also replaces 'cond' in lisp/scheme.

I'm not entirely happy with any of the ways to format if/cond. Look at
how ghastly it can get:

http://github.com/nex3/arc/blob/f311b3879c/lib/news.arc#L1492

Wart isn't immune to it, and neither is the traditional 'cond'. I
spent a bunch of time trying to come up with syntax highlighting
schemes for this (based off of
http://lemonodor.com/archives/001207.html). Now I just try to keep
if's simple :)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to