Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow tupled returns and outrefs in functions outputs #787
Tupled returns and outrefs in functions outputs
I propose we allow outrefs in function parameters to be outputted with return statements in tupled form, as it already works with methods.
Example that it works, with methods:
Example that does not work, with functions:
Pros and Cons
The advantage of making this adjustment to F# is more predictability in using tupled outputs with returns and outrefs, because I do not see a reason for this currently only be available for methods, and not functions.
Estimated cost (XS, S, M, L, XL, XXL): S
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply: