-
Notifications
You must be signed in to change notification settings - Fork 149
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
Promotion with SArray * Number #69
Comments
Good catch! This should most definitely be different! I think that's what has been called preserving the |
Sigh. I wish this stuff was more obvious and intuitive (not that I disagree with the motivation, but just having a simple |
I think julia master just swapped to this behavior. Way to be ahead of the curve @andyferris :) |
Awww, what? That's the most classic way for me to introduce type instabilities. Where was this decided? |
I find this behavior much more intuitive. Type stability is always an issue. |
I'm going to close this. I don't intent to fix this for v0.5 if it matches v0.6 anyway. |
This behavior is different between SVectors and base arrays (different resulting element type):
It is a bit annoying because it will promote the array when you multiply with a literal. In base they use
promote_array_type
it seems.The text was updated successfully, but these errors were encountered: