Closed forivall closed 8 years ago
If an expression is followed by a pipe, treat the pipe as the bitwise operator no matter what. Wouldn't that work?
Yup, that's what regexp parsing does. I actually only remembered about regexp parsing when I started writing this issue, but it's still worthwhile to document somewhere.
@forivall FYI, I decided to change |>
into #>
(which looks more like =>
and shouldn’t be as ambigous).
Since
|
is already used for bitwise operators, it would be tough for the parser to figure out if it's reading a list of arguments or a bitwise OR. There are two possible solutions for this:|>x> x*x
or||x>x*x
(the second one makes sense if you wanted a plugin for my project, which is completely replacing||
withor
)