现在是
加载中...
加载中...

https://dzone.com/articles/jshell-finally-an-official-shell-in-java-9

This breakdown of Java 9’s new REPL, JShell, shows off all of its features and how you can put it to use in your projects.

The shell or the REPL is a well-known tool in many programming languages. Typically, this is more common in scripting languages such as Python or Node, but more recently it’s been adopted by JVM languages like Clojure and Groovy as well. The upcoming Java 9 release finally brings this shell functionality to the Java language as well, in the form of JShell.

This article will explore what we can do with JShell and how to make the most of it.

What Is a REPL?

Simply put, the REPL is an interactive shell into which we can enter commands and have these immediately executed and the results displayed.

The use of this tool tools can greatly help in trying out new ideas and techniques and in quickly testing code without needing to write an entire test class to run.

At the core, this is all about an immediate feedback loop and can have a significant impact on productivity in that particular language.

作者:Terwer

首发:浅海拾贝

原创内容,转载请注明出处!

评论