-
-
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
make [] give an Any array #8493
Conversation
👍 |
🎆 🍰 |
+100 |
I haven't watched this but I'm assuming you rickrolled us.
|
You know, |
@JeffBezanson most of those functions will not work though. |
Without covariant arrays, that's not all that useful. |
Fair enough. |
A plotting function with a keyword array argument containing zero or more values, e.g. But making Or wouldn't it be possible to acknowledge the fact that all empty arrays are alike, so that their element type does not matter? Is there any situation where the element type of an empty array is important? |
The element type of an empty array absolutely matters, because vectors can grow, and |
Ah, right. Sometimes you don't care about the type, but sometimes you do. One could imagine converting e.g. |
Converting |
Objects can't change type in Julia and in a dynamic language – especially one with as much polymorphism as Julia – reverse propagation of types is not really feasible. |
make [] give an Any array
Hard to tell how much this broke as so much still broken from #8420, but, didn't add too many bodies to the dead packages pile. |
This change seems to be pretty popular from what I gather.