Better HN
topnewbestaskshowjobs
Log inSign up

revoly

3 karma · joined Aug 20, 2023 (3y ago) · 1 submissions

what? revoly.at.hn
Submissions

comment 3y ago · link · parent

I don't think the solution is trying to cover this. If a user does type conversion then usually they know what they are doing. It's like going out of the way. The solution is to just hide a type behind an interface to be explicit about it and to avoid the error that would have gone unnoticed otherwise.