Scala 3 REPL commands #17895
Replies: 0 comments 9 replies
-
You can use
Except for |
Beta Was this translation helpful? Give feedback.
-
I agree that |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
FWIW, in regards to Scala 3, I just copied-and-pasted those commands from the Scala 2 REPL without much thought as to what was really needed. I was writing the Command Line chapter for the Scala Cookbook (for Scala 3) at the time (and we also had a brief Zoom call where we discussed this), and I noticed that the number of commands that were in the REPL had been greatly reduced. (And wow, I didn’t know you could |
Beta Was this translation helpful? Give feedback.
-
If you don't have
That doesn't seem to work for me by default. Also, I thought the generally accepted combination for "newline without commit" is shift-return, which should work the same on all kinds of keyboards. |
Beta Was this translation helpful? Give feedback.
-
Scala 2 REPL also has some "hidden" functions like this which would be nice to have as well.
Perhaps in a more official capacity. E.g.
|
Beta Was this translation helpful? Give feedback.
-
Worth noting that scala 2 REPL detects I don't know offhand if there is a compelling use case for REPL emitting into the empty package, although that is what empty package is for, just trying stuff out. Raw paste enables that, since you can't name empty package. |
Beta Was this translation helpful? Give feedback.
-
Note that although Scala 3 has |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Background
Per our discussion, the Scala 2.13 REPL has these commands:
The
scala
command also has these command-line options:The current Dotty REPL (
dotr
) has these commands:I can’t determine if
dotr
has any command-line options.Issue(s)
I think part of the discussion was going to be, which of these commands should be enabled in the Scala 3 REPL? I also added the command-line options here, though that might be a separate issue.
(Also, if I haven’t put this issue in the correct place, just point me to the proper location. Thanks.)
Beta Was this translation helpful? Give feedback.
All reactions