By jtyost2 via javalobby.org Published: Dec 04 2007 / 09:38
It's an interesting issue to raise but I don't think it's worthwhile to incorporate in Java 7.
Seems like a waste of time. This would add a lot of complexity for the simple solution of returning an Object.
I think it would be awesome, and have often wished for this feature
Still can't see the point of this to be honest. What's wrong with just declaring a class to return the items?
Multiple return types will never happen - too difficult to keep your code clean with such feature around.
Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.
Comments
fancyfootwork replied ago:
It's an interesting issue to raise but I don't think it's worthwhile to incorporate in Java 7.
sproketboy replied ago:
Seems like a waste of time. This would add a lot of complexity for the simple solution of returning an Object.
kdavies replied ago:
I think it would be awesome, and have often wished for this feature
ra17740 replied ago:
Still can't see the point of this to be honest. What's wrong with just declaring a class to return the items?
Dmitriy Setrakyan replied ago:
Multiple return types will never happen - too difficult to keep your code clean with such feature around.
Voters For This Link (16)
Voters Against This Link (8)