So I have to move the cursor all the way to the left and insert f and
perhaps some more brackets, etc.
In my opinion, this is not an issue that should be resolved on the
programming language level. Rather use the correct (readline)
keybindings that are available in IRB just fine: Use CTRL+A for
immediately moving your cursor to the beginning of the line and CTRL+E
for moving to the end of the line. Currently, IRB appearently does not
support wordwise jumping with CTRL+arrow keys as most shells do, but
that can surely be implemented in IRB. No need to change the programming
language for that.
There might be other reasons (see below) for a new piping operator, but
that particular reason just strikes me as a very odd one that seems
resolved better by improving IRB.
It could be called the "goes into" operator. It's similar in concept
to unix pipe I guess.
Eric recently started a thread (message
<20160602015532.GA31921@dcvr.yhbt.net>) that was asking for a "pipe
into" feature with relation to process output, resembling Unix pipes.
If we had such a pipe operator, that could be more easily implemented.
If we get such an operator, it would be cool if it was a method as most
other operators are so that one can do creative things with it on custom
classes. Maybe one can pass it a Method instance as the argument.
If you create the issue in rubymine all the discussion will happen
there as it should be otherwise you will get two discussions.
Not everyone follows the tracker -- it contains so *many* discussions,
not all of which interest everyone --, and ultimately someone would drop
a link to the issue on the tracker here anyway, and then we also have
two discussions. I appreciate it if such a deep change is discussed on
Ruby-Talk prior (or in parallel) to while it is discussed on the
tracker. Otherwise there are chances that the change goes unnoticed
until release, which is too late to provide feedback.
Valete,
Marvin
···
Am Sat, 2 Jul 2016 00:36:51 +1200 schrieb Samuel Williams <space.ship.traveller@gmail.com>:
--
Blog: http://www.guelkerdev.de
PGP/GPG ID: F1D8799FBCC8BC4F