«« Next » « Previous
«« Next » « Previous

Link Details

Link 55730 thumbnail
User 201907 avatar

By jtyost2
via javalobby.org
Published: Dec 04 2007 / 09:38

Should Java 7 include the ability to have multiple return types?
  • 16
  • 8
  • 1454
  • 470

Comments

Add your comment
User 257922 avatar

fancyfootwork replied ago:

0 votes Vote down Vote up Reply

It's an interesting issue to raise but I don't think it's worthwhile to incorporate in Java 7.

User 187417 avatar

sproketboy replied ago:

0 votes Vote down Vote up Reply

Seems like a waste of time. This would add a lot of complexity for the simple solution of returning an Object.

User 184684 avatar

kdavies replied ago:

0 votes Vote down Vote up Reply

I think it would be awesome, and have often wished for this feature

User 29409 avatar

ra17740 replied ago:

0 votes Vote down Vote up Reply

Still can't see the point of this to be honest. What's wrong with just declaring a class to return the items?

User 241464 avatar

Dmitriy Setrakyan replied ago:

0 votes Vote down Vote up Reply

Multiple return types will never happen - too difficult to keep your code clean with such feature around.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.