Why do functions in some popular languages return only a single type of result?
i.e I mean Why The Compilers give Error on Following Syntax
public int int returnTwoIntegers(){
.......
........
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Daniel Weinreb — who worked on both Lisp dialects (which had multiple return values) and Java (which didn’t), explains why: