2 ms·
Why is it crazy to use it in production? There's going to be a lot of overhead with this kind of thing, but did you have another reason?
by tome 15y ago
Why is it crazy to use it in production?
There's going to be a lot of overhead with this kind of thing, but did you have another reason?
- llimllib 15y agoThe simple answer is, go look at @partial's __call__: https://github.com/markshroyer/pointfree/blob/master/pointfree.py#L468 https://github.com/markshroyer/pointfree/blob/master/pointfr... All that code is executing on every partial call. So, a very brief list of reasons not to use this in production: 1. overhead 2. complexity 3. debugging 4. don't fight the language edited to add: I just want to emphasize that I think it's a really, really neat hack!
- mattdeboard 15y agoBecause it deviates entirely from Python's semantics. edit: In other words, "Don't fight the language" as another commenter said.