Hacker News new | ask | show | jobs
by DangitBobby 1614 days ago
Please elaborate.
2 comments

In a dynamic language it’s already hard enough determine what type a given variable is at runtime once the codebase reaches a certain size. When you’re passing arbitrary parameters in the form of kwargs that just adds another layer of dynamism on top that can make debugging even more difficult. It definitely has its place but it’s generally a good idea to use positional parameters if you know they will be passed.
It's impossible to see what arguments a function expects without reading all the code that uses it.

You can't always trust documentation to be accurate and up to date.