4 ms·
Maybe like this: ["p", "this is a", ["a", "link", {href: "http://example.com http://example.com"}], "."] If that is uglier is debatable, maybe a little bit. H
by fauigerzigerk 19y ago
Maybe like this:
["p", "this is a", ["a", "link", {href: "http://example.com http://example.com"}], "."]
If that is uglier is debatable, maybe a little bit. However, the point is really that suckyness is not just a matter of esthetics. All the more I agree with your second point.
- twism 19y agoi think both JSONs above are a bit lispy :)... {"p":{">":"this is a","a":{"@":"http://example.com",">":"link"},">":"."}
- twism 19y agomissing closing "}"
- bct 19y agoNow bold something inside the link, and put a class attribute on the paragraph.
- twism 19y agoi actually thought about that, its harder to read than plain ol html {"p":{">":"this is a","a":{"@href":"http://example.com","b":{">":"link"}},">":".","@class":"my-p-class"}}
- leoc 19y agoNow imagine the complete works of Shakespeare in that format...
- fauigerzigerk 19y agoyou're right, but look at an average html page. Is that pretty? I guess it makes no sense to argue about purely syntactical issues. Comparing static HTML and JSON is not what it's about in the real world.