5 ms·
It's pretty simple IMO: supporting multiple return values constitutes unnecessary language complexity once you have tuples in your language (which you should, b
by pcwalton 13y ago
It's pretty simple IMO: supporting multiple return values constitutes unnecessary language complexity once you have tuples in your language (which you should, because they are extremely simple and generalize to many other patterns beyond returning multiple values).
- anonymoushn 13y agoWhy support multiple arguments?
- informatimago 13y agoIndeed.
- pcwalton 13y agoIn many cases, I do think it's the right decision to only support one argument per function, but I explained why Rust doesn't do that here: https://news.ycombinator.com/item?id=6949077 https://news.ycombinator.com/item?id=6949077