4 ms·
I get the reasoning behind it, but the choice of the division operator is still a little weird. I believe it should be equally possible to overload the bitwise
by jawns 2y ago
I get the reasoning behind it, but the choice of the division operator is still a little weird.
I believe it should be equally possible to overload the bitwise OR operator (|), which, for people used to piping in Unix, is probably more intuitive.
- Tomte 2y agoWrong direction: you‘d „pipe“ wat through the object. Although TiddlyWiki users might feel right at home.
- auscompgeek 2y agoIt could override the reverse bitwise or magic method `__ror__`.
- igrek51 2y agoRight, that would be a wrong pipe direction. Fun fact: It's already possible to do "wat | foo" or "wat << foo" (if you're more familiar with C++ iostream), it has the same effect as "wat / foo"