Hacker News new | ask | show | jobs
by ajnin 1358 days ago
You'd be limited very quickly since Java does not have local methods. This would work for only very simple scripts that fit in a single method.
1 comments

The context of this is entirely what is the lowest amount of ceremony that we need in order to reduce the teaching overhead of a java program. This really comes down to simple first up, with easy exits towards more complex. That very much looks like to me:

1. Single file single function imperative

2. Single file multi-function imperative (introduce multiple functions)

3. OO (introduce classes etc)