-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Tuple{} vs tuple() in Generated Function Vararg type #12783
Comments
See comments at #10380 (comment) and following. If we were to change this, I think we need a Edit to add: Another reason to do this is that it would be nice to use Tuple subtype relationships in some cases (like here: base/abstractarray.jl#L502 ) |
Yeah, on further reflection I think this is actually better. If tuple types are easier to access it makes even more sense. |
Giving a bump here as I recently ran into wanting tuple types being easier to work w/. |
Here's one problem. Given
For the call |
We may want to consider generated functions to be an unstable feature even post 1.0. |
I propose closing this. |
Passing a tuple here doesn't bother us enough to be worth changing. |
Consider:
As you can see,
x
in the generated function is not actually the type ofx
in the method that is run. I would have expected that both would beTuple{Int64,Int64}
.The text was updated successfully, but these errors were encountered: