Closed Porcupine96 closed 7 years ago
Tested locally and it works:
icr(0.23.1) > |paste # Entering paste mode (ctrl-D to finish) puts "hello" puts "bro" [1, 2, 3].each { |e| puts e } ^D # Ctrl-D was pressed, now interpreting... hello bro 1 2 3 => nil
But I'm not sure if we need this because you can just use parenthesis (or begin, end):
begin
end
icr(0.23.1) > ( icr(0.23.1) > puts "hello" icr(0.23.1) > puts "bro" icr(0.23.1) > [1, 2, 3].each { |e| puts e } icr(0.23.1) > ) hello bro 1 2 3 => nil
@greyblake WDYT?
Your call guys. I made the requested changes :)
Personally I don't see advantages of |pcopy over parens or begin end...
|pcopy
@greyblake @crystal-community/maintainers thoughts?
I'll take a look tonight.
Tested locally and it works:
But I'm not sure if we need this because you can just use parenthesis (or
begin
,end
):@greyblake WDYT?