Replies: 2 comments
-
Reasoning was that it can be more uniform with anonymous unions and potential future literal types. Aliasing |
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
-
question on RFC FS-1060
Q: just a small question what was the reason for adopting a
typscript like synthax
vs aC# like
for nullable ref types and value types? probably there is a valid reason for preferring a typescript approach ofstring | null
? If so, would it be possible to type aliasstring?
tostring | null
to make the 2 equivalent?would that be a kind of anonymous discriminated union with "automatic" constructor? (like we have anonymous records),
would it work possibly for other "anonymous unions" ?
Beta Was this translation helpful? Give feedback.
All reactions