3 ms·
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
by refactor_master 4y ago
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.
- rocqua 4y agoI have found *kwargs useful for wrapper functions, where you pass kwargs to some other, later defined, function.