Kulla JEP update -- feedback requested

Remi Forax forax at univ-mlv.fr
Sat Apr 25 11:32:05 UTC 2015


On 04/25/2015 03:48 AM, Robert Field wrote:
> Before the Kulla JEP can move forward we need an up-to-date JEP.   I 
> have done the first draft of this update:
>
>        https://bugs.openjdk.java.net/browse/JDK-8043364
>
> Please give me any feedback on problems with this (yes, please tell me 
> about nits too).
> I'd like to know what you see as missing.
>
> In particular, I currently have nothing in the "Risks and Assumptions" 
> section.
>
> Information on testing and tab-completion, etc is minimal. Andrei? Jan?
>
> Thanks,
> Robert
>

Hi Robert,
I found the motivation doesn't help to understand how jshell works.
At the end of the section, you're talking about removing the ceremony 
"class Foo { public static void main(String[] args) { ..." but this is 
not what jshell does, jshell only remove "class Foo {".

See my previous message on this list, variables in jshell are static non 
final fields and not local variables.

I don't think it's a good idea for a newbie to use a REPL that consider 
all variables as global,
said differently, I don't want to explain in the following example why 
the line with 'a' compiles but not the line with 'b'.

int a = a + 1
if (a == 1) {
   int b = b + 1;
}

cheers,
Rémi



More information about the kulla-dev mailing list