News for hackers. Stuff that matters.
Re:XML is better than YAML by roryokane on Thursday September 21, 2023 @05:26PM (#37604607)
Fixed link to that style guide entry: https://guide.clojure.style/#opt-commas-in-map-literals

Per that style guide, the above map should be formatted like this:

  {:a 1
   2 :bar
   [1 2 3] :baz}
Most maps written in EDN have keys of a consistent type. A map whose keys are consistently keywords would look like this when formatted:

  {:a [1 2]
   :bar "https://example.com/"
   :baz [1 2 3]}
HN comment formatting help: https://news.ycombinator.com/formatdoc. I indented the above code by two spaces.

There are no comments on this comment yet.