The Philosophy of Nothing
Neal Gafter
neal at gafter.com
Wed Dec 2 08:07:46 PST 2009
On Wed, Dec 2, 2009 at 7:59 AM, Paul Benedict <pbenedict at apache.org> wrote:
> Does the spec prevent defining method that can neither return nor throw?
>
> public Nothing func() throws Nothing { }
>
No, because Java has unchecked exceptions, and for other reasons that will
be more clear when part b (0.6b) is published.
I can't imagine what the value would be of adding such restrictions to the
specification or compiler.
Cheers,
Neal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091202/2c090acb/attachment.html
More information about the closures-dev
mailing list