Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
run-types
· 5y ago · 0 comments
Here is a very useful generic type alias:
type Maybe<T> = Some<T> | Error
Not sure why you'd want to disallow that.
Comments
[–]
brundolf
5y ago
Right, but I plan on including
really
fundamental stuff like this at the language level (I don't know for sure that it will look exactly like this, but there will be a story for this situation built-in)