Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
davedx
· 3y ago · 0 comments
"However, it’s important to be aware of the potential drawbacks of using this type of wrapper, so consider adding a warning message to it."
Or just don't do it, it's not type safe.
Comments
[–]
asherah
3y ago
i think it's reasonable for cases where you know the type, e.g. an internal object which a user of a library can't access