Re:TypeScript is terrible for library developers
by overgard on Tuesday August 23, 2022 @04:32PM
(#32571079)
I don't think allowing users to call libraries in all manner of crazy ways is a good thing at all, and I don't think anyone would really be that put out by following a more pythonic approach of just allowing one way to do something.
[ Parent
| on HN ]
Re:TypeScript is terrible for library developers
by mmmpop on Tuesday August 23, 2022 @04:35PM
(#32571121)
Yeah but you're writing libraries in Javascript, that ship has sailed already. You're gonna just need a bit fat switch statement to check your input types on every public function you ever write.