News for hackers. Stuff that matters.
Re:TypeScript is terrible for library developers by refactor_master on Tuesday August 23, 2022 @03:52PM (#32570522)
I agree, and it’s the same with Python. If you start with static, type-safe first, then Python’s flexibility ends up being so horribly convoluted that you avoid it in favor of simpler constructs. **kwargs? Massive union types? Super flexible dicts? Rather not!

I’ll define 50 strongly typed constructs over having to run my code through 50 times to catch all the runtime bugs.

Re:TypeScript is terrible for library developers by rocqua on Tuesday August 23, 2022 @04:35PM (#32571122)
I have found *kwargs useful for wrapper functions, where you pass kwargs to some other, later defined, function.