I must say something here.  I'm not familiar with Kojo or even Scala that much 
(in terms of writing code) at the moment, but there IS something special to 
being able to leverage any language's DSL capabilities.  If you can plug in 
some 
libraries and immediately start writing in a DSL using your standard tool chain 
that already exists as well as any tools that might get developed for said 
language/environment in the future -- that's a much better proposition than 
mocking up a simple compiler or interpreter and allowing someone to write code 
in your special new language.

 Alexey
2001 Honda CBR600F4i (CCS)
2002 Suzuki Bandit 1200S
1992 Kawasaki EX500
http://azinger.blogspot.com
http://bsheet.sourceforge.net
http://wcollage.sourceforge.net





________________________________
From: Cédric Beust ♔ <[email protected]>
To: [email protected]
Sent: Sun, August 29, 2010 12:44:32 PM
Subject: Re: [The Java Posse] Re: So Scala is too Complex?




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.



      

-- 
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