Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rakudo REPL output tuning #5391

Closed
p6rt opened this issue Jun 21, 2016 · 4 comments
Closed

Rakudo REPL output tuning #5391

p6rt opened this issue Jun 21, 2016 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 21, 2016

Migrated from rt.perl.org#128447 (status was 'resolved')

Searchable as RT128447$

@p6rt
Copy link
Author

p6rt commented Jun 21, 2016

From @awwaiid

A simple session in the REPL now​:

  > # Empty line, or only a comment, outputs "Nil", before was nothing
  Nil
  > Nil # outputs "Nil", before was nothing
  Nil
  > "" # No output, before was a blank line
  > "hello"
  hello
  > 0
  0
  > False
  False

This isn't quite consistent with what the REPL did before the recent changes. I think at the very least the empty-string input should print out a newline.

Should whitespace-only/comment input result in "Nil\n"? I think no.

Should Nil input/output result in "Nil\n"? I think YES (which is different than before). But it might be difficult to distinguish from empty input -- though we could at least special-case literally "\n" input.

I imagine we could also have perl-mode instead of gist-mode, so that the output is proper and evaluable perl. Probably an internal setting, or something I do in a 3rd party REPL.

(I will do this work myself, but want suggestions)

@p6rt
Copy link
Author

p6rt commented Jun 30, 2016

From @awwaiid

This is solved in rakudo/rakudo#799 (once merged).

I'd assign the ticket to myself, but can't.

On Tue Jun 21 07​:33​:10 2016, awwaiid wrote​:

A simple session in the REPL now​:

# Empty line, or only a comment, outputs "Nil", before was nothing
Nil
Nil # outputs "Nil", before was nothing
Nil
"" # No output, before was a blank line
"hello"
hello
0
0
False
False

This isn't quite consistent with what the REPL did before the recent
changes. I think at the very least the empty-string input should print
out a newline.

Should whitespace-only/comment input result in "Nil\n"? I think no.

Should Nil input/output result in "Nil\n"? I think YES (which is
different than before). But it might be difficult to distinguish from
empty input -- though we could at least special-case literally "\n"
input.

I imagine we could also have perl-mode instead of gist-mode, so that
the output is proper and evaluable perl. Probably an internal setting,
or something I do in a 3rd party REPL.

(I will do this work myself, but want suggestions)

@p6rt
Copy link
Author

p6rt commented Jul 3, 2016

From @zoffixznet

Merged.

@p6rt
Copy link
Author

p6rt commented Jul 3, 2016

@zoffixznet - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Jul 3, 2016
@p6rt p6rt added the REPL label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant