Archive for the 'closures' Category
Closures and the return of the return
13 Comments Published by peter December 21st, 2007 in closures, java, ruby.I attended Joshua Blochs' presentation on closures at JavaPolis last week (watch the video here). This slides about return not return from what you'd expect kept me wondering: how do other languages solve this 'problem'.
The example from Bloch, taken from Slide 38 of Blochs' closures controversy presentation:
PLAIN TEXT
JAVA:
static <E> Boolean contains(Iterable<E> seq, {E => Boolean} [...]



















