@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.
Smalltalk has a concept of blocks, which is a lightweight syntax for anonymous functions.
However, they have this marvellous property: you can return from the enclosing method! This makes them far more useful for things like iterating with early termination.
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?