3 ms·
Oh they add a REPL. I know the REPLs from other languages and I know Java. I doubt, that's going to be something I would ever have fun with.
by cygned 10y ago
Oh they add a REPL. I know the REPLs from other languages and I know Java. I doubt, that's going to be something I would ever have fun with.
- aardvark179 10y agoI've found it really useful. You can quickly play with an API to understand the corner cases, and it's often quicker than looking through the docs.
- asimjalis 10y agoI have played with the REPL in Java 9. It is sweet.
- yawz 10y agoThis gets a thumps-up from me. I love REPLs in general, and I think it's pretty sweet that Java is getting JShell. It's great for beginners, but also for any level for experimenting with ideas and APIs.
- jayd16 10y agoWhy would you think its not fun? Have never used the "immediate" window or expression evaluation in a debugger to run code? Look it up, its nice.
- cygned 10y agoI program in a lot of other languages and Java always looks like 120% boilerplate to me. I am not sure yet how well the REPL can handle that.
- iainmerrick 10y agoDefining a new class takes tons of boilerplate. Just calling some existing code looks pretty much like any other C-style language; it's fine. Python has a pretty tedious class definition syntax too, and nobody ever accused Python of having a bad REPL!
- aardvark179 10y agoYou'll like what's coming after Java 9 then, maybe sooner than you expect.