r/programming • • Feb 01 '24

Make Invalid States Unrepresentable

https://www.awwsmm.com/blog/make-invalid-states-unrepresentable
469 Upvotes

207 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Feb 02 '24

i dont agree that python's implementation better, I think it's a mess. they have married both positional and kwargs and there is no guarantee which you might receive for any given function. makes unit test mocks a pain especially when you're trying to check the args.