Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
chpatrick
· 1y ago · 0 comments
I think type-level string unions are the way to go. They're concise, efficient (the strings are interned anyway), and when you're debugging you know what the values are rather than getting mysterious integers.
Comments
[–]
pspeter3
1y ago
Are all strings under a certain length interned?