3 ms·
This would also be great to write multiline code in a REPL (without all the backslashes). Though it might be more difficult to read.
by amelius 4y ago
This would also be great to write multiline code in a REPL (without all the backslashes).
Though it might be more difficult to read.
- kagevf 4y agoWhich REPL? In emacs, depending on whether it's slime or ieml, you can do things like hit CTRL-J to get a line break without triggering an eval. Maybe it works in other REPLs too ...
- amelius 4y agoI was thinking of Bash, but it looks like it doesn't work.
- kagevf 4y agoI was able to use ctrl-j in bash (on ubuntu over ssh) and ctrl-j didn't trigger an execution. I just did something simple like: cat ./test.txt && # hit ctrl-j here > less ./test.txt # the ">" was generated by bash automatically So, it probably depends on what you're doing ...