2 ms·
As a Python programmer, I've found that since I started using `mypy` I've written a lot more classes - I generally like using multiple small functions, but clas
by strokirk 6y ago
As a Python programmer, I've found that since I started using `mypy` I've written a lot more classes - I generally like using multiple small functions, but classes have two big benefits for me:
1. I don't have to repeat / import type signatures as much
2. I can collapse a bunch of related functions more easily in my editor.
So functional programming (in python at least!) has a few things to solve regarding ergonomics for me to return to it.