Suppose we are comparing various JavaScript engines for the JVM. One criteria for comparison might be whether they provide a REPL environment for the JVM - basically, an environment where you can type in quick commands to test out the language and interact with Java libraries dynamically.
More formally, REPL can be defined as a Read-Eval-Print loop, with the read function taking in the expression (rather than a full-fledged compilation unit), eval evaluates and print prints the result. JShell is a REPL included in the JDK since Java9.
More formally, REPL can be defined as a Read-Eval-Print loop, with the read function taking in the expression (rather than a full-fledged compilation unit), eval evaluates and print prints the result. JShell is a REPL included in the JDK since Java9.
No comments:
Post a Comment