By javathreads
via infoq.com
Published: Oct 14 2008 / 14:38
JVM-compatible languages such as Scala, Groovy and JRuby are recently gaining more popularity for developing Domain Specific Languages (DSLs). But are they better suited to creating internal DSLs than the Java programming language? Venkat Subramaniam explains why "Essence over ceremony" and "Metaprogramming" features in a dynamic language like Groovy help in developing internal DSLs.
Comments
newton_dave replied ago:
I'm not even sure how this question can be asked with a straight face.
john.jian.fang replied ago:
I think Groovy is way better or easier than Java to create DSL if you do not want to write
DSL parser by yourself. I created a framework on top of Selenium so that it is much easier
to write Selenium tests. The first version is written in Java and it is really hard to use if you
do not know the framework well enough due to the limitation of Java's syntax. Thanks to Groovy's syntax, optional type,
and metaprogramming, I re-write the framework in Groovy to use DSL and more people start
to use it. The framework is open source now and you can find it at http://code.google.com/p/aost/
if you are interested. Thanks.
Voters For This Link (13)
Voters Against This Link (0)