Let’s you embed it into your project as a regular library dependency.
Replicates much of what Ammonite did for us in Scala 2 - thanks Haoyi et al!
Now featuring a proper readme
Thank you so much. I always miss this support in Scala3. Ammonite does not support scala version 3.7.0.
BTW, is that possible to have a SBT plugin, so that once entering sbt, we can use pprepl(for example) to invoke this REPL?
I don’t know how SBT’s console works (is it Scala-cli or raw scala REPL ?). Scala now put “:silent” parameter back, but this is just a ON or OFF button. If we can limit the default full-screen output of arbitrary values (like only top 10 lines for an expression), I think raw scala REPL is also not bad.
This looks nice.
I’m not very familiar with Scala. Is it possible to “drop into” a REPL in the middle of program execution?
If your application runs in a terminal then yes, you can first run your custom code and then start a SRP instance within the application.
Requires some custom plumbing, but should work just fine.