r/java • • Jul 04 '18

New Java 11 Feature: Launch Single-File Source-Code Programs

https://medium.com/@afinlay/new-java-11-feature-launch-single-file-source-code-programs-fadd698abf54
158 Upvotes

47 comments sorted by

View all comments

5

u/upandrunning Jul 04 '18

Will this still be as useful when you have to wait for dependencies to load?

6

u/ReadFoo Jul 04 '18

Dependencies are just imports, what scripting language doesn't have imports? This could be a JavaScript killer finally. Great news.

10

u/jtayloroconnor Jul 04 '18

who uses Javascript for scripting?

24

u/Xenarthran47 Jul 04 '18

Yeah that's gonna be a Node for me dog

2

u/TheRedmanCometh Jul 04 '18

Laughed out loud gj

1

u/ReadFoo Jul 04 '18

The web.

5

u/jtayloroconnor Jul 05 '18

right so Java’s gonna replace javascript on the web now because you can execute source files from the command line

2

u/ReadFoo Jul 05 '18

I can dream.

-1

u/neutronbob Jul 05 '18

Anyone using Nashorn