News for hackers. Stuff that matters.
Re:Clojure or: How I Learned to Stop Worrying and Love the P... by jimbokun on Tuesday August 31, 2010 @09:20PM (#1651491)
What tool do you use to build an optimal syntax for all your needs?
Re:Clojure or: How I Learned to Stop Worrying and Love the P... by cageface on Tuesday August 31, 2010 @09:49PM (#1651551)
I'm increasingly suspicious of DSLs. Mostly I work in languages like Scala or Ruby with a syntax that's expressive enough for almost anything as it is and avoid building DSLs on top of them. You can cover a lot of ground in any language that allows higher order functions and function, sequence and hash literals.

Syntax matters but it seems to have become a bit of an obsession lately.

Re:Clojure or: How I Learned to Stop Worrying and Love the P... by statictype on Tuesday August 31, 2010 @10:49PM (#1651646)
DSLs aren't just about the curly braces and lambdas. It's also about reducing the amount of boilerplate code required to achieve some task. You can do this with higher order functions and objects but only to a certain extent.

If you find that your language still requires boilerplate code to implement features in whatever domain you're working in, then perhaps it's time to get a new language - or write a DSL.

Re:Clojure or: How I Learned to Stop Worrying and Love the P... by cageface on Tuesday August 31, 2010 @11:53PM (#1651776)
Agreed, but I just don't find myself writing much boilerplate in modern languages. The other abstraction mechanisms take care of most of it.
Re:Clojure or: How I Learned to Stop Worrying and Love the P... by jules on Wednesday September 01, 2010 @06:22AM (#1652356)
That's the problem with boilerplate. You don't see that it's boilerplate until you see a languages where it's unnecessary.
Re:Clojure or: How I Learned to Stop Worrying and Love the P... by khafra on Wednesday September 01, 2010 @12:37PM (#1653279)
If that's true (and it seems likely) how can you avoid writing blub in lisp? How can you ever know to what extent you're writing blub in lisp?
Re:Clojure or: How I Learned to Stop Worrying and Love the P... by jules on Thursday September 02, 2010 @04:49AM (#1655634)
You mean writing blub-like code in Lisp? You probably cannot avoid that on your own unless your name is Guy Steele or someone like him, but by reading non-blub Lisp code you can.