- Sep 29, 2000
- 2,157
- 0
- 0
I don't quite know if this is highly technical enough but why is it that every programming language I have ever used specifies that functions return one and only one value? I know that its technically not a function if it returns two things but seeing as how trivial yet annoying it is to try and have a function return two things, why has this requirement not been relaxed for more modern languages?
I've programmed in a fair few rather obscure ones and read about a lot more so I'm pretty certain its not present in any modern, widely used language. I can see many ways it could be handy so its odd that nobodys done this. Is there some advanced theoretical compiler theory that makes this difficult?
I've programmed in a fair few rather obscure ones and read about a lot more so I'm pretty certain its not present in any modern, widely used language. I can see many ways it could be handy so its odd that nobodys done this. Is there some advanced theoretical compiler theory that makes this difficult?