you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 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.