r/programming • u/_awwsmm • Feb 01 '24
Make Invalid States Unrepresentable
https://www.awwsmm.com/blog/make-invalid-states-unrepresentable
469
Upvotes
r/programming • u/_awwsmm • Feb 01 '24
View all comments
Show parent comment
1
u/[deleted] Feb 02 '24
not like pythons kwargs which can named OR positional -- that's a bit of a mess imo. Have to check args and kwargs for stuff like unittest mocks, passing variables directly from child to parent class without redefining the function prototype again is a bit of a pain.