3 ms·
The small downside to using kwargs is just the extra letters needed to call the function but I can live with that. As for args with the same type, you can use
by rdedev 3y ago
The small downside to using kwargs is just the extra letters needed to call the function but I can live with that.
As for args with the same type, you can use phantom types I guess but I haven't explored it much in python. I'm pretty interested in the dfdx library in rust which can type enforce matrix or vector operations on it's shape. Stuff like that would really help me
- boxed 3y agoIt's an advantage imo. Makes the code more readable, and much more robust against bad refactors.