-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
@TypeOf with multiple args #4624
Conversation
Shouldn't this take tuple as argument instead of varargs? |
It feels a bit awkward with tuples, |
Maybe we need a separate macro for this case? Something like |
|
That's true, but it doesn't change that I can't do resolution if I only know the types. Are there any other precedents for varargs builtins? |
@SpexGuy |
Ok then this is probably fine. I'm just worried that proponents of varargs will point to this as a reason to add them back into the language. ("you couldn't even write the builtins without them" or some argument along those lines.) |
But that concern can be separate from this PR. This is hardly the place for this discussion. Sorry @LemonBoy, carry on. |
landed in 378bf1c |
Closes #439 (oh that's quite old)
Missing pieces (for another PR/day):