I’ve seen BASIC and Apache Camel DSLs in Scala, and they’re just fantastic. Any more examples of such DSLs?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have a good source in the MEAP (Early Access) book

DSL in action from Debasish Ghosh (blog: “Ruminations of a programmer)
Testing frameworks like scalatest are classic examples of DSL:
There are many others DSL-based frameworks out there:
specs: “Behaviour-Driven-Design framework”
internal DSLs
Squeryl: “A Scala ORM and DSL for talking with Databases with minimum verbosity and maximum type safety”
def songCountByArtistId: Query[GroupWithMeasures[Long,Long]] = from(artists, songs)((a,s) => where(a.id === s.artistId) groupBy(a.id) compute(count) )