Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ibejoeb
· 2y ago · 0 comments
The string "3.99" always comes back as a string, but when you need do anything at all to it, it resolves down to the same problem.
Comments
[–]
langcss
2y ago
Ideally, one should make illegal state unrepresentable. The problem with a string is there is no guarantee it represents a money amount.