moodymudskipper / nakedpipe

Pipe Into a Sequence of Calls Without Repeating the Pipe Symbol.
69 stars 7 forks source link

break to break a chain ? #25

Closed moodymudskipper closed 11 months ago

moodymudskipper commented 3 years ago

The parser is ok with us using break, it's a call like any other.

We could use break to break a pipe chain, it would usually be used after if, else it's equivalent to commenting the remaining of the call.

Technically it breaks code that would use break inside the chain as meant to break a loop, but it's extremely unlikely that it's been used this way.

moodymudskipper commented 11 months ago

Bad idea, maybe a break_pipe() function, but not smart reusing base::break. closing for now