-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Feature request: support for "private" type parameters #36201
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
I get the motivation here, but this is going to have its share of problems. If we don't show all of the parameters, then you don't have enough information to do anything with the type. For example, if you pass the printed type to
An example would be helpful here --- i.e. some SubArray code or method definitions, and what you would like to be able to rewrite them to. I'm not sure how disallowing dispatch on some parameters helps, and there are |
Sounds like a duplicate of #18466, and the feature is already implemented in https://github.com/vtjnash/ComputedFieldTypes.jl (which addresses exactly those problems Jeff mentioned)? |
Ah yes, in many cases extra type parameters could be dropped if they could be computed from other parameters. But IIUC this is also asking for field types that depend on the types of field values, not just other parameters. |
Pinging @andyferris and @oxinabox to this conversation. Maybe they can provide the motivating examples |
I am not nesc sure this is a good idea, there is a reason it was on slack and not in an issue. |
Pasting below the relevant discussion from Slack's #gripes channel. I really like the suggested feature and would love to have it in Julia.
The text was updated successfully, but these errors were encountered: