-
-
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
Expression Int{}
should be an error
#17943
Comments
One can argue that concrete types as zero-parameter type constructors. |
Yes, though that's similar to arguing that scalars are 0d arrays, or that constants are functions that don't take arguments. I don't think it's a good thing. For example, Julia does make a distinction between I wrote up some thoughts about this a few weeks ago https://eschnett.github.io/julia/2016/06/23/some-thoughts-on-generic-programming-in-julia. |
I think this can be handled in #8974. It will only be valid to do type application with UnionAll types (plus Tuple and Union as special cases), whereas now the meaning of |
closed by #18457 |
Int
is not a type constructor, hence defining additional type parameters doesn't make sense.The text was updated successfully, but these errors were encountered: