Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
barmic12
4mo ago
0 comments
Save
Share
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.
0 comments
2 comments · 2 top-level
top
newest
oldest
vips7L
4mo ago
Correctness is more important than runtime costs.
LelouBil
4mo ago
In languages like kotlin and rust you can have a type encapsulation like this that does not exist at runtime
j
/
k
navigate · click thread line to collapse