I'd say that Java's verbosity doesn't lend itself well to interactive use. There are quite a few REPLs that allow calling Java code from another language, e.g. the integrated Javascript interpreters (run `jjs` in a terminal), BeanShell, Jython, JRuby, etc.
Don't forget Groovy! It's expressly built to bring "dynamic feeling" to Java.
And don't forget that Java can call Groovy code ;-)
The lack of interest. If you haven't used a language that has a REPL you don't know how powerful it is. Most of the Java devs I know haven't used REPL with any other language.
Re:Jshell: The Java Shell (REPL)
by LoSboccacc on Sunday July 05, 2015 @07:26AM
(#9833199)
Beanshell was there since 1999
Re:Jshell: The Java Shell (REPL)
by sam_lowry_ on Sunday July 05, 2015 @11:29AM
(#9833830)
Yes, finally someone remembered it!
Reinventing the wheel is so human...
Re:Jshell: The Java Shell (REPL)
by LoSboccacc on Monday July 06, 2015 @08:21AM
(#9838545)
I know right? But if you say groovy and the like are just respin of age old stuff they treat you like an old fart
And to think that when I advocated for writing business logic in a scripted language in 2003 everyone was looking at me like I was crazy (well italy is always quite behind last trends, so while in the states they were starting with scripting languages we were still writing ejb with xml - and we still do in many places)
In fact, JavaREPL (http://www.javarepl.com/) with its standalone version exists for very long time.
Several months ago I wanted to have an REPL for C and couldn't find anything satisfactory and I had the similar thought: Why weren't there any decent REPL for C ?
Re:Jshell: The Java Shell (REPL)
by userbinator on Sunday July 05, 2015 @10:55AM
(#9833743)
Re:Jshell: The Java Shell (REPL)
by zak_mc_kracken on Sunday July 05, 2015 @11:30AM
(#9833833)
All Java IDE's have offered an interactive shell for years so there is little need for a REPL. It's just a nice thing to have but nothing more.
My question is, what took so long? What prevented it?