Skip to content

Commit a8a8617

Browse files
authored
Update README.md (mpollmeier#215)
1 parent e9b40c0 commit a8a8617

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
`srp` enhances the stock Scala 3 REPL with pretty rendering, dependency handling, better scripting, runBefore code etc., makes it more customizable and let's you embed it into your project as a regular library dependency. \
55
When you read `srp` think "syrup" - full of goodness, glues things together :slightly_smiling_face:
66

7-
Comparing pretty printing of `srp` and regular `scala` REPL side by side:
7+
Comparing `srp` and regular `scala` REPL side by side - `srp` uses pprint for pretty structured rendering including product labels.
88
<img src="pretty-printing.png" height="200"/>
99

1010
# Quick start
@@ -614,19 +614,15 @@ removeModuleInfoFromJars := removeModuleInfoFromJars.triggeredBy(Universal/stage
614614
* import additional files, which may include `using` directives
615615
* customize the greeting and prompt
616616
* server mode
617-
* structured rendering including product labels and type information:<br/>
618-
Scala-REPL-PP:<br/>
619-
<img src="https://github.com/mpollmeier/scala-repl-pp/assets/506752/2e24831e-3c0d-4b07-8453-1fa267a6a6bf" width="700px"/>
620-
<br/>
621-
Stock Scala REPL:<br/>
622-
<img src="https://github.com/mpollmeier/scala-repl-pp/assets/506752/77d006d1-35ef-426f-a3b8-1311a36ffed5" width="700px"/>
617+
* structured rendering including product labels and type information
618+
<img src="pretty-printing.png" height="200"/>
623619

624620
## [Ammonite](http://ammonite.io)
625621
Ammonite's Scala 3 support is far from complete - e.g. autocompletion for extension methods has [many shortcomings](https://github.com/com-lihaoyi/Ammonite/issues/1297). In comparison: `srp` uses the regular Scala3 ReplDriver rather than re-implementing it.
626622

627623
`srp` allows you to use it as a library in your own build with *minimal* dependencies. Ammonite has some Scala2 dependencies intermixed, leading to downstream build problems like [this](https://github.com/com-lihaoyi/Ammonite/issues/1241). Therefor it's no longer easy to embed Ammonite into your own build (something we used to do when we used Scala 2.13).
628624

629-
To be fair: Ammonite allows to add dependencies dynamically even in the middle of the REPL session which is nice. In `srp` you need to know which dependencies you want on startup.
625+
Ammonite allows to add dependencies dynamically even in the middle of the REPL session which is nice. In `srp` you need to know which dependencies you want on startup.
630626

631627

632628
# Contribution guidelines

0 commit comments

Comments
 (0)