6 ms·
Seems to me that Haskell's ability to infix named functions is a much nicer solution over-all
by ryansouza 13y ago
Seems to me that Haskell's ability to infix named functions is a much nicer solution over-all
- pcarbonn 13y agoI agree. I wish python had the capability to infix functions. Maybe the topic for a new PEP ?
- akehrer 13y agoThis is this[1] workaround. I wonder if a whole set of infix matrix operations could be added to reduce the need to load numpy for simple tasks. A @* B A @. B A @+ B [1] http://code.activestate.com/recipes/384122/ http://code.activestate.com/recipes/384122/
- pcarbonn 13y agoYes, but making it part of the language would bring clear error messages in case of misuse, and would allow the use of a different token, e.g. ":", as in smalltalk