> And why does everyone keep talking about DSL's?

Let me give you an example of a wonderful DSL written in Scala:

http://wiki.github.com/alaz/mongo-scala-driver/

As you can easily understand this is the Scala driver for MongoDB.
Just note the small code examples you can find in the home page of the
project. You can find gems like:

// Skip first 5 and get 2 users
for {val u <- User drop 5 take 2 in users} ...

and

// Query by regexp
val endingBy5 = User.name ~ "r5$".r in users

Can you imagine a more readable DB driver? Wouldn't you be more
productive with it if you were involved on project that uses MongoDB?

Bye,
Mario
twitter: @mariofusco

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