Kaylen Wheeler
2016-03-08 19:24:40 UTC
I've been looking through the various core.typed types, and there doesn't
seem to be a type for types. I know that it's possible to use something
like java.lang.Class, but this isn't consistent across platforms, and also
doesn't include user-defined tags that may be used as part of the :type
metadata.
It may be useful to have the Type type be parameterized as well, so you
could add a notation like the following to clojure.core.typed:
(ann clojure.core.typed (All [x] [x -> (Class x)]))
Are there any plans in the future to introduce something like this? If
not, do you think it would be a difficult feature to contribute?
seem to be a type for types. I know that it's possible to use something
like java.lang.Class, but this isn't consistent across platforms, and also
doesn't include user-defined tags that may be used as part of the :type
metadata.
It may be useful to have the Type type be parameterized as well, so you
could add a notation like the following to clojure.core.typed:
(ann clojure.core.typed (All [x] [x -> (Class x)]))
Are there any plans in the future to introduce something like this? If
not, do you think it would be a difficult feature to contribute?