3 ms·
Positional optional arguments seems to be the bad idea here. If you have to have optional arguments, its probably best to make them named. This would this mak
by spion 6y ago
Positional optional arguments seems to be the bad idea here.
If you have to have optional arguments, its probably best to make them named.
This would this make an unintended clash a lot less likely. The name has to match - and if you have the types, both the type AND the name would need to match.
Not only that, it also it lets you have any number of optional arguments with a lot less fuss, and pass any subset of them.