On Sun, Aug 29, 2010 at 9:37 AM, Kevin Wright <[email protected]>wrote:

> Go on then... create the DSL in Java
>
> it must be possible to write the following fragment, in a .java file, so
> that it compiles and is checked by the compiler and continues to look like
> native syntax:
>
> repeat(4) {
>   forward(100);
>   right(90);
> }
>
> as a concession, I don't expect you to make it work without semicolons, as
> the Scala version does.
>

You're missing the point.

The fact that it's implemented as a DSL in Scala is a neat technical trick
that you can't pull off in Java, but Kojo users don't care how you implement
it and they certainly don't get more enlightened in Scala because of this
trick.

Saying that Kojo teaches you Scala is like saying that programming in Java
teaches you C++ because the JVM is written in C++.

-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to