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

Add support for the :silent command in the REPL #21661

Open
Gedochao opened this issue Sep 27, 2024 · 0 comments
Open

Add support for the :silent command in the REPL #21661

Gedochao opened this issue Sep 27, 2024 · 0 comments
Labels
area:repl compat:scala2:feature-parity Issues tied with features which were at some point included in Scala 2 and could be brought over. itype:enhancement

Comments

@Gedochao
Copy link
Contributor

The :silent command was (and is) supported by the Scala 2 REPL, while it is visibly absent in Scala 3.

scala -S 2.13
Welcome to Scala 2.13.15 (OpenJDK 64-Bit Server VM, Java 17).
Type in expressions for evaluation. Or try :help.
scala> :help
All commands can be abbreviated, e.g., :he instead of :help.
(...)
:silent                  disable/enable automatic printing of results
(...)
scala> val loud = "this will get printed"
val loud: String = this will get printed

scala> :silent

scala> val silent = "this won't"
@Gedochao Gedochao added itype:enhancement area:repl compat:scala2:feature-parity Issues tied with features which were at some point included in Scala 2 and could be brought over. labels Sep 27, 2024
@Gedochao Gedochao changed the title Add support for the :silent command in the REPL Add support for the :silent command in the REPL Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:repl compat:scala2:feature-parity Issues tied with features which were at some point included in Scala 2 and could be brought over. itype:enhancement
Projects
None yet
Development

No branches or pull requests

1 participant