Hacker News new | ask | show | jobs
by eadmund 1172 days ago
The S-expression version looks so much more pleasant:

    (proj (name "My Biz CLI")
          (url "http://github.com/mybiz/mybizctl")
          (model-version "4.0.0")
          (group-id com.mybiz)
          (artifact-id mybizctl)
          (version "1.0.0")
          (packaging jar)
          (deps
           (dep (group-id junit)
                (artifact-id junit)
                (version "5.0.1")
                (scope test))))
1 comments

I probably should have omitted alternatives and comments in my example - would have come to the same length then and just as easy to read. Did so below and even more pleasant to read - esp for folks already used to HTML.

Do S-expressions have a schema standard ?

    <proj 
      name="My Biz CLI" 
      url="http://github.com/mybiz/mybizctl" 
      groupId="com.mybiz" 
      artifactId="mybizctl"
      version="1.0.0"
      modelVersion="4.0.0">  
      <deps>  
        <dep groupId="junit" artifactId="junit" version="5.0.1" scope="test" />  
      </deps>  
    </proj>