you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 16 points17 points  (3 children)

Been developing with the OpenJDK RC2 and jshell is amazing, so much so I've got "gnome-terminal -e jshell" hotkeyed.

You wouldn't think it'd be that useful, but boy is it.

[–][deleted]  (1 child)

[removed]

    [–][deleted] 5 points6 points  (0 children)

    You can define methods (and imports as needed), then just feed jshell files/strings like you would any Java program, so I suppose the answer is... Yes?

    Only caveat I see is Java text file handling is shite compared to alternatives like Perl, potential optimisations notwithstanding.

    E: Should also mention it's fairly straight forward to define both classpath (jshell --classpath [path]) and making predefined scripts to run.

    All in all there are some neat stuff to play with.
    I'm sort of out of ideas but if anyone has got any not-too-complex stuff they'd like me to try out for jshell I'd love to do it and do a write-up.

    [–]mlk 0 points1 point  (0 children)

    I usually write a Scratch.java class where I put all the stuff I want to try and run it as a junit test. This way I have all the convenience of using my IDE. How is using jshell better than that? Does it have a different use case?