moodymudskipper / nakedpipe

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

debugging #6

Closed moodymudskipper closed 4 years ago

moodymudskipper commented 4 years ago

it's always been a bit annoying with pipes, maybe we have an opportunity to do better ?

If we use a -- prefix it's really natural to print, message, plot, in the middle of the chain, would there be a way to browse ?

Check the work that I had done in the pipe package about it.

I think we could have a browsing type, it won't use Reduce as current one but lay out the explicit instructions and go through them, using ...1, ...2 etc as placeholders.

The calls are all executed in the parent environment but ...1 etc are stored in a mask, so we have the results of each step available.

moodymudskipper commented 4 years ago

Done! not with ..1 etc because they're tricky (or impossible) to substitute in corner cases (dots used in NSE expressions such as formulas or dplyr::funs etc). They'd also be awkward to type and introduce confusion.

The way it works now is really smooth, the only possible issue is that %D.% is very different from %.%, although they do the same thing, so bugs in the package might create confusion, so let's just test it well.

github-actions[bot] commented 2 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.