Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by singularity2001

8 hours ago

json without comments is one of the worst cancers in programming land. however replacing json5 // with # is NOT it!

2 comments

singularity2001

Reply

kitd  8 hours ago

Why?

  • IshKebab  8 hours ago

    Because // is already pretty well established as the comment format in JSONC and JSON5? Why do it differently?

    It is fairly minor though I would say, and at least it makes it clear that block comments aren't supported (which is good).

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities