|
|
|
|
|
by pfultz2
4299 days ago
|
|
I disagree. It makes it very simple to make a pipable function, you just wrap the function object in pipable. There's nothing complicated about using it. Futhermore, doing it by hand is not as simple, but still not very complicated. This just helps alleviate the boilerplate in defining pipable functions. |
|
I'm not talking about using the pipe operator, I'm talking about implementing it. The C++ version is ridiculously complicated.
Let's compare your code with an analogous implementation in Common Lisp.
Just this allows for some pretty similar code: It is possible to implement it in C++, but the implementation winds up being ridiculously complicated. I just implemented something very similar in Common Lisp and it wound up being incredibly simple. Why doesn't C++ allow for a definition nearly as nice as the Common Lisp one?