3 ms·
Please elaborate.
by DangitBobby 5y ago
Please elaborate.
- spicybright 5y agoIt'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.
- edgyquant 5y agoIn 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.