I'm surprised I've never seen a lisp dialect where it's idiomatic to use trailing parens as you would in C.
(foreach car cars
(drive car)
)
It makes structure very visible when you're trying to add a new expression.
IDEs help, but is the ))) density always compelling?
miniblog.
Related Posts
Do you prefer longer, readable keywords (e.g. function, export, foreach) or keyword that are shorter and faster to type (e.g. fun, pub, for)? Why?
@wasamasa@niu.moe I suppose it makes some usages easier and others harder.
jQuery.each supports early termination, whereas Array.prototype.forEach does not. In Smalltalk this is less necessary.
Nice sample code and explanation of foreach in io: http://t.co/eN0MTSHvCE (introspecting parameter names!)