-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
confusing types of Complex arrays #10255
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
Comments
This is not a bug, but the result of parametric invariance. If this issue is about the name |
But why should ca get typed as Array{Complex{Int64},1} ? |
Why shouldn't it? How is it different from inferring |
If you don't specify an element type, we pick for you. We prefer a narrow type by default because homogeneous arrays are extremely common and essential for performance. |
Ok, then why not prefer a narrow type for |
I guess that's because |
Yes, that syntax is for requesting an element type. You're right that we could have decided to have |
This seems confusing:
Commit 4e68cb4* (0 days old master)
The text was updated successfully, but these errors were encountered: