Hacker News new | ask | show | jobs
by LeanderK 1011 days ago
numpy is a great library, but I find the pytorch take on it superior. It allows for much more method-chaining, which I find to be very readable in longer computations. I frequently want to reach out for it in numpy, only to see that it's a np.* function. In functional languages I would use an infix pipeline-combinator like (|>) but that's not possible in python.
1 comments

While not really python, there's Coconut language that has the infix pipeline operator and compiles into python.