JShell proposal: /exit_if {predicate}
Christian Stein
sormuras at gmail.com
Mon May 13 16:15:05 UTC 2019
On Mon, May 13, 2019 at 6:08 PM Brian Goetz <brian.goetz at oracle.com> wrote:
> JShell was designed to be an interactive environment, not a batch runner.
> Though I understand why you would want to apply it as such, features like
> this serve merely to dilute the design center, ultimately at the expense of
> its core mission.
>
Got it. But still... it'd be convenient.
> There is a story for batch execution: JEP 330 (
> https://openjdk.java.net/jeps/330).
>
If only `java {url}` was suppported.
At the moment, you can use `jshell https://bit.ly/make-java` [2] like a
charm, but `java {here_be_a_url_pointing_to_Make.java}` doesn't.
[2] https://github.com/sormuras/make-java#makejava
More information about the kulla-dev
mailing list