News for hackers. Stuff that matters.
Re:Avoid Null Checks by Replacing Finders with Tellers by Pxtl on Monday June 17, 2013 @02:03PM (#5894777)
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?
Re:Avoid Null Checks by Replacing Finders with Tellers by dragonwriter on Monday June 17, 2013 @06:50PM (#5896494)
Never 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.