2 ms·
Wouldn't simply returning a list and then using your language's favourite foreach construct have functionally the same semantics without the confusion of passin
by Pxtl 13y ago
Wouldn't simply returning a list and then using your language's favourite foreach construct have functionally the same semantics without the confusion of passing code-blocks around?
- dragonwriter 13y agoNever saw "passing code blocks around" as a source of confusion, and in many languages (Ruby, for a salient example) "passing code blocks around" is the same mechanism as is used in the languages main foreach construct.