Skip to content

Forward-port REPL improvements #1087

Closed
Closed
@odersky

Description

@odersky

The dotty REPL was derived from a version of the Scala REPL from 2008. Since then there have been many improvements. A lot of them are specific to nsc (e.g. power mode) so are probably difficult to integrate as is. But there are also a lot of other improvements that would make sense to integrate.

I suggest to go back into the history of the Scala REPL and see which commits warrant porting into the new one.

Independent of this, there are also a number of refactorings of the REPL code which would make sense. First, we should make use of string interpolation to construct all synthetic sources functionally instead of using string printers as is now the case. Second, we could possibly get interpreter information directly from typed trees by using a slightly different way to access the compiler.

Long term: An integration of the REPL with a presentation compiler (which remains to be created).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions