
July 18, 2009
8:59 a.m.
Gerald Britton <gerald.britton@gmail.com> wrote:
About return, yield and their ilk in where clauses:
don't do it!
Seriously, a where clause should be restricted to providing definitions for the things in the statement for which the where clause is specified. Today, we can't do a return (with argument) in a generator function, which makes sense. A where clause should not allow returns or yields or in general actions that explicitly transfer control beyond the statement.
+1 -- Jan Kaliszewski <zuo@chopin.edu.pl>