Link Details

Link 125811 thumbnail
User 276353 avatar

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.
  • 13
  • 0
  • 1129
  • 270

Comments

Add your comment
User 306525 avatar

newton_dave replied ago:

0 votes Vote down Vote up Reply

I'm not even sure how this question can be asked with a straight face.

User 333228 avatar

john.jian.fang replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.