Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
barmic12
· 9mo ago · 0 comments
one issue is it’s not a type alias but a type encapsulation. This have a cost at runtime, it’s not like in some functionnals languages a non cost abstraction.
Comments
[–]
vips7L
9mo ago
Correctness is more important than runtime costs.
[–]
LelouBil
9mo ago
In languages like kotlin and rust you can have a type encapsulation like this that does not exist at runtime