in which we cater to those with an allergic reaction to parentheses

A lot of people have been talking about how parentheses are such a big barrier to adoption of Clojure these days. Apparently they're pretty intimidating when you're used to a language with a lot of curly braces and things. While I can't do anything about Clojure itself, I realized we could make some changes to Leiningen that would allow newcomers to return to the comfort of XML. My latest plugin is called lein-xml, and it lets you write this:

<?xml version="1.0" encoding="UTF-8"?>
  <description>Just some kind of sample thing</description>
      <name>Eclipse Public License</name>

...instead of this bewildering, unfamiliar invocation:

(defproject org.leiningen/sample "0.1.0-SNAPSHOT"
  :description "Just some kind of sample thing"
  :url ""
  :license {:name "Eclipse Public License"
            :url ""}
  :dependencies [[org.clojure/clojure "1.5.1"]
                 [slamhound "1.3.3"]])

I know it probably won't be used by anyone who has spent much time with Clojure, but for newcomers hopefully this will remove one of the big blockers for enterprise developers trying out Clojure.

« older | 2013-04-01T20:42:59Z | newer »