pragma strict java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pragma strict java

whydoineedtoregister
This post has NOT been accepted by the mailing list yet.
Greetings,

Groovy is all cool.

But type checking/compile time checking is also cool.

I would suggest something like:


#pragma language(java)

String s = new String();
s.notafunction(); // compile error

#pragma language(groovy)




or perhaps a

strict String s;
s.notafunction(); // compile error




Thanks a lot.


-tim