Re: Anonymous class - I don't know how to...
- From: Tom Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Jun 2007 15:38:45 +0100
Twisted wrote:
In practise, I expect the requirement for "final" on the local
variables may be quietly dropped and nothing will be done to support
returning from enclosing contexts, though it could be done, as it just
isn't very useful in typical Java programming (to the point that I've
never used it aside from as proof-of-concept).
If closures could support abstraction like the for loop, early exits should be common. Think how you would normally implement a 'find first'.
OTOH, if closures are supposed to abstract control flow away, then the early exits should be moved to the 'algorithm method' and not in the closure.
Tom Hawtin
.
- References:
- Anonymous class - I don't know how to...
- From: kaja_love160
- Re: Anonymous class - I don't know how to...
- From: Andreas Leitgeb
- Re: Anonymous class - I don't know how to...
- From: Andreas Leitgeb
- Re: Anonymous class - I don't know how to...
- From: Twisted
- Anonymous class - I don't know how to...
- Prev by Date: Re: [JFreeChar] What is the best kind of charts for my problem ?
- Next by Date: Re: how to count exactly the rows of a ResulSet
- Previous by thread: Re: Anonymous class - I don't know how to...
- Next by thread: Re: Anonymous class - I don't know how to...
- Index(es):
Relevant Pages
|