Hacker News new | ask | show | jobs
by fallenshell 3686 days ago
This exact concept has been done multiple times. And it never worked, because the syntax was horrible. And it's just not convenient at all, it's good for toying around with interpreters and the likes but it has no purpose or use. See https://m.reddit.com/r/coding/comments/3akmn1/sums_this_rel_...
1 comments

That's good to know that it was done before with JSON, I've only seen XML attempts. It probably shows that there is a need, doesn't it?

Syntax is a matter of opinion, JSONScript seems more concise than REL in the link.

>That's good to know that it was done before with JSON, I've only seen XML attempts.

Both approaches are similarly flawed, but XML would actually work much better for what you're trying to do with JSON - and much more readable.

I've seen several XML based scripting implementations. This one for example: http://www.drdobbs.com/web-development/jelly-an-xml-based-sc...

I may have got used to the syntax I came up with, but all XML based scripts seem more verbose and less readable. I guess, each to its own...

Not necessarily. It just shows people are willing to experiment with JSON, even though it might end up badly.