you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 7 months ago (3 children)

I'm not a real programmer but I was wondering wtf you're on about because I don't think I've ever worked with a json file in a system that didn't use // for comments lmfao

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 7 months ago (2 children)
  • [–] 1 point 7 months ago (1 child)

    I did say "I'm not a real programmer" heh 😮‍💨 I just thought // was standard for comments across all json files

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 7 months ago

    No biggie, I just named an example. Even "real" programmers, whatever definition you want to use for that, don't know all languages.

    But yes, many languages do use // as comments and particularly the Javascript environment it originally stems from does. Python (#) and SQL (--) are the only examples I interact with frequently enough to know off the top of my head (but SQL still recognises /* ... */ for delimited comments). XML/HTML also has <!-- --> for comments, but that's not so much a programming and more of a description language.

  • source
  • parent