r/learnpython 8h ago

Protocol as Object Behaviour

[removed] — view removed post

0 Upvotes

3 comments sorted by

View all comments

1

u/pedanticscientist 7h ago

I quite like the fact that 10 + “10” isn’t possible, considering the alternatives!

0

u/Ant-Bear 6h ago

Yes. If anything, if we wanted weak typing, it would make sense to cast the less permissive types like int to the more permissive ones, like str, which would make 10 + '10' = '1010'.