News for hackers. Stuff that matters.
Re:TypeScript is terrible for library developers by overgard on Tuesday August 23, 2022 @04:20PM (#32570926)
Honestly, that's just silly. There's absolutely no reason to accept that many different call styles. Why not just take in an array? As a user I don't find things like this convenient, I find them to be confusing footguns. It's a one liner to split your comma separated string into an array as an end-user, but once you add that complexity to the interface in the library you can never ever take it out.
Re:TypeScript is terrible for library developers by LtWorf on Tuesday August 23, 2022 @06:53PM (#32572642)
I thought in the js world it was normal to break compatibility whenever.