News for hackers. Stuff that matters.
Re:Hjson, the Human JSON by burke on Thursday April 14, 2016 @12:21PM (#11497979)
> YAML expresses structure through whitespace. Significant whitespace is a common source of mistakes that we shouldn't have to deal with.

> Both HOCON and YAML make the mistake of implementing too many features (like anchors, sustitutions or concatenation).

Re:Hjson, the Human JSON by eterm on Thursday April 14, 2016 @12:33PM (#11498122)
But this too has significant whitespace, acting as a comma in separating properties. (It's not clear whether you can mix commas and whitespace here.)

Also this claims to not need escapes, but it's also not clear how this format handles a comma or a newline in strings without escaping, do they act as a comma to separate properties or do they act as natural commas/newlines?

Re:Hjson, the Human JSON by PuerkitoBio on Thursday April 14, 2016 @01:49PM (#11498912)
Only quoteless strings have no escapes, and according to the docs the rule is:

  > quoteless strings include everything up to the end of the
  > line, excluding trailing whitespace.
(edit: formatting)
Re:Hjson, the Human JSON by eterm on Thursday April 14, 2016 @07:18PM (#11501012)
So this

{

  foo:one,

  bar:two
}

Parses to "one," because it is a quoteless string?

What about true and false, is false the boolean constant or a unquoted string "false".

Re:Hjson, the Human JSON by PuerkitoBio on Thursday April 14, 2016 @08:03PM (#11501175)
I posted this in another thread here, but it's documented in the linked page:

  > A value that is a number, true, false or null in JSON is parsed as a value.
  > E.g. '3' is a valid number while '3 times' is a string.
Re:Hjson, the Human JSON by crdoconnor on Thursday April 14, 2016 @05:59PM (#11500665)
>YAML make the mistake of implementing too many features (like anchors, sustitutions)

That's why I remove those features.

Significant whitespace is a normal complaint for beginners in python too, but most people prefer it in the end.