4 ms·
This is a fun project and a cute reinvention of Lisp, as people have already mentioned. I think people are snarky because if this was just a fun project, that w
by dvt 5y ago
This is a fun project and a cute reinvention of Lisp, as people have already mentioned. I think people are snarky because if this was just a fun project, that would be the end of it. But it seems like JsonLogic is trying to be an actual thing.
And this latter point is why it's just a monumentally terrible idea. I mean.. just look at the Custom Operations wiki[1]. It's honestly just horrible -- horrible -- and may actually even summon Zalgo[2]. This is exactly how we ended up with the XML nightmare of the late 90s/early 2000s. JSON is not meant to be programmable. Please, for the love of all that is holy, stop.
[1] https://github.com/jwadhams/json-logic-js/wiki/Custom-Operations https://github.com/jwadhams/json-logic-js/wiki/Custom-Operat...
[2] https://stackoverflow.com/a/1732454/243613 https://stackoverflow.com/a/1732454/243613
- vesinisa 5y ago> Please, for the love of all that is holy, stop. Yes! Oh my god, this. I remember how XML ended up being abused to express Turing complete logic in too many instances. Then they even specified an XML format to transform other XML documents, called XSLT, which is itself Turing complete. It really makes my head hurt. I think why people gravitated away from XML was because it had become a convoluted mess. The JSON specification is terse on purpose, famously enough so to fit on a business card. If you want to abuse JSON to express logic, please keep it as your dirty little secret.
- nitwit005 5y agoThe moderator's note on #2 adds a lot to the amusement.