Replies: 2 comments
-
Part of the issue with what you're suggesting is due to how attributes work. The |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yup. Types need to be first-class. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Under this proposal, types don't seem to be first class. There's no way to do, for example:
Having types be first class allows them to be passed around to things like database ORMs or HTML form validators. For example, it might be useful for an ORM to know that if a field is an
INT
, it should use a particular SQL data type, and if you're generating an HTML form, to use<input type=number>
to get input for that field.Beta Was this translation helpful? Give feedback.
All reactions