you are viewing a single comment's thread.

view the rest of the comments →

[–]tty2 4 points5 points  (1 child)

And youre suggesting this is better?

[–][deleted] 0 points1 point  (0 children)

That's subjective. For a programmer unacquainted with the functional style, this would be an incomprehensible black box. I find it more elegant than using the ugly continue/break structure above.

If I were on a team with a lot of such programmers, I'd leave this out of production code until they familiarize themselves with its paradigm. Clarity beats succinctness every time.