4 ms·
Someone should introduce a language feature - maybe a decorator - where arguments have to be called by name. @mustnameparams copy(str from, str to) copy
by rmtech 7y ago
Someone should introduce a language feature - maybe a decorator - where arguments have to be called by name.
@mustnameparams
copy(str from, str to)
copy(from = "blah", to = "hrg")
> works
copy("blah", "hrg")
> throws error
- newtempaccount 7y agoyou mean something like def pythonDoesThis(self, *, from='':AnyStr, to='':AnyStr)->AnyStr: