-
-
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
Proposal for interaction of diagonal rule and lower bounds #26453
Labels
types and dispatch
Types, subtyping and method dispatch
Comments
Seems like a good idea to me. |
JeffBezanson
added a commit
that referenced
this issue
Mar 21, 2018
JeffBezanson
added a commit
that referenced
this issue
Mar 21, 2018
JeffBezanson
added a commit
that referenced
this issue
Apr 4, 2018
JeffBezanson
added a commit
that referenced
this issue
Apr 10, 2018
mbauman
added a commit
that referenced
this issue
Apr 12, 2018
* origin/master: A few more #26670 fixes (#26773) Revert "deprecate using the value of `.=`. fixes #25954" (#26754) change dim arguments for `diff` and `unique` to keyword args (#26776) reorder pmap arguments to allow do-block syntax (#26783) correct deprecated parametric method syntax (#26789) [NewOptimizer] handle new IR nodes correctly in binary format [NewOptimizer] support line number emission from new IR format fix #26453, require obviously-concrete lower bound for a var to be diagonal (#26567) fix #26743, spurious `return` path in try-finally in tail position (#26753) Also lift SelectInst addrspaces
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I understand correctly, right now the rule for
Tuple{T,T} where T>:t
is:T
is considered diagonal unless it is obvious thatt
is abstract. Therefore, in the examples below the types on the right are not diagonal:In the following modification of the previous example, however,
T
is considered diagonal despite the fact that its lower boundS
can be abstract.I totally see that it is a hard task to determine concreteness of types involving variables. What I would suggest is to change the strategy for
Tuple{T,T} where T>:t
and considerT
non-diagonal unless it is obvious thatt
is concrete. I think that if programmers write lower bounds, it is likely that they really want to switch off the diagonal rule.The text was updated successfully, but these errors were encountered: