You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it would require inserting the function into the tuple beforehand, calling a call function (and also call the right one).. which is quite off from this feature request.
Another approach would be to wrap the original function, unflattening it:
Which is quite approachable. I originally didn't think about this, a macro could generate those wrapped functions.
I guess I'll be closing then lol sorry - but if someone would consider it to be appropriate as a standard approach, please feel free to reopen it :P
The text was updated successfully, but these errors were encountered:
Centril
added
T-lang
Relevant to the language team, which will review and decide on the RFC.
A-tuples
Proposals relating to tuples.
labels
Mar 27, 2019
Optionally flatten a tuple as arguments themselves when fed into a function.
This suggestion is tangent to other two suggestions:
So, for examaple:
And:
would be possible/accepted.
I'm not sure if this could be reached with generics or some other way, but I believe it cannot.
The closest I could get with generics was:
But it would require inserting the function into the tuple beforehand, calling a
call
function (and also call the right one).. which is quite off from this feature request.Another approach would be to wrap the original function, unflattening it:
Which is quite approachable. I originally didn't think about this, a macro could generate those wrapped functions.
I guess I'll be closing then lol sorry - but if someone would consider it to be appropriate as a standard approach, please feel free to reopen it :P
The text was updated successfully, but these errors were encountered: