logoalt Hacker News

embedding-shapetoday at 10:37 AM1 replyview on HN

YAML:

  - - "hello"
YAML expanded:

  -
    - "hello"
JSON (typical formatting):

  [
    [
      "hello"
    ]
  ]
And EDN for good measure:

  [["hello"]]
I know which one I prefer :) Silly example perhaps, but once you have X lists nested in Y lists, it does become a lot easier to see why some prefer a bit more visually hierarchically stronger syntaxes

Replies

skydhashtoday at 12:31 PM

I still prefer ini files for configuration. Easier to grep and sed.

show 2 replies