|
4 | 4 | `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. \
|
5 | 5 | When you read `srp` think "syrup" - full of goodness, glues things together :slightly_smiling_face:
|
6 | 6 |
|
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. |
8 | 8 | <img src="pretty-printing.png" height="200"/>
|
9 | 9 |
|
10 | 10 | # Quick start
|
@@ -614,19 +614,15 @@ removeModuleInfoFromJars := removeModuleInfoFromJars.triggeredBy(Universal/stage
|
614 | 614 | * import additional files, which may include `using` directives
|
615 | 615 | * customize the greeting and prompt
|
616 | 616 | * 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"/> |
623 | 619 |
|
624 | 620 | ## [Ammonite](http://ammonite.io)
|
625 | 621 | 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.
|
626 | 622 |
|
627 | 623 | `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).
|
628 | 624 |
|
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. |
630 | 626 |
|
631 | 627 |
|
632 | 628 | # Contribution guidelines
|
|
0 commit comments