-
Notifications
You must be signed in to change notification settings - Fork 2
Scala 3 REPL commands #131
Comments
You can use
Except for |
I agree that |
|
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 |
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. |
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.
|
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. |
Note that although Scala 3 has |
Dale has now implemented this: scala/scala3#14139 (also Chris's scala/scala3#14521) |
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.)
The text was updated successfully, but these errors were encountered: