4 ms·
Json is a language?
by uberman 2y ago
Json is a language?
- deleted 2y ago[deleted]
- breck 2y agoYes. A small (but extremely popular and useful) domain specific language for describing arrays and objects and scalars.
- uberman 2y agoSanity checking with wikipedia to see if I missed something, I'm going to have to disagree. Json is a data exchange format and while ubiquitous and well defined, it supports none of the elements that make a computer language a language.
- erik_seaberg 2y agoIt's not a programming language with semantics, but it is a https://en.wikipedia.org/wiki/Context-free_language https://en.wikipedia.org/wiki/Context-free_language in the sense that we have a grammar specifying which strings are valid.
- breck 2y agoWe classify JSON as a "dataNotation" (line 4 on https://github.com/breck7/pldb/blob/main/concepts/json.scroll https://github.com/breck7/pldb/blob/main/concepts/json.scrol...) We classify something like C as a "pl" (programming language) (line 4 on https://github.com/breck7/pldb/blob/main/concepts/c.scroll https://github.com/breck7/pldb/blob/main/concepts/c.scroll). We classify both data notations and programming languages as computer languages (https://github.com/breck7/pldb/blob/4b7f689244a0f5dc0d99fb315f28f8499d6747bf/Computer.js#L27 https://github.com/breck7/pldb/blob/4b7f689244a0f5dc0d99fb31...) I do understand where you are coming from though. Someone could certainly do a post on whether there are any programming languages that don't have comments. At the moment, 100% of programming languages that we have that data for (>600) have comments. https://pldb.io/lists/features.html https://pldb.io/lists/features.html I think this makes JSON interesting, especially given its backstory of once having comments.