Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple return-values from functions #229

Open
jakhog opened this issue Jun 12, 2018 · 1 comment
Open

Multiple return-values from functions #229

jakhog opened this issue Jun 12, 2018 · 1 comment

Comments

@jakhog
Copy link

jakhog commented Jun 12, 2018

This is mostly sugar, but is one of the parts I like a lot about languages like Go and Python, and it would not take a lot of work to support it for all target languages.

It is also closely related to "composite types" which have been discussed in #160. If we make those first, multiple return values could automatically be wrapped in composite types and returned from multi-return functions.

@brice-morin
Copy link
Collaborator

Well, if we go for composite types, I would not do anything automatically but rather allow function to return composite types explicitly. But we of course need constructors and accessors for thos composite types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants