4 ms·
Lot of the features in this library seem to be targeted at making things clearer, not just making your code as compact as possible. It is a lot cleaner to use t
by GhostVII 6y ago
Lot of the features in this library seem to be targeted at making things clearer, not just making your code as compact as possible. It is a lot cleaner to use type dispatch rather than have some switch case in your function to determine behavior. And it is useful to know where the kwargs is being used rather than have it be a black box. Having to store every parameter from __init__ into self is an annoying pattern I find myself almost always following, so it's nice to have a solution to that too.
Generally I prefer to use vanilla python as much as possible, but I think there is value in having libraries like this, which make things clearer and have less boilerplate without much cost. Most of what I see would be pretty easy to replace with regular python if you decided to move away from the library, there aren't lots of wierd layers being added to your code.