4 ms·
I don’t think I have time for a full review, but making $ext a map seems short sighted. In the example, a poll is included, great. What if you want two polls? I
by jonhohle 4y ago
I don’t think I have time for a full review, but making $ext a map seems short sighted. In the example, a poll is included, great. What if you want two polls? It’s another level of indirection, but making $ext a list (unless the encoding protocol handles multiple values with the same key). This also allows for a specified ordering of extensions, provided that makes sense.
- pfraze 4y agoWe're open to that possibility. We know the broad idea we want to apply with schema extensions, but we're still figuring out the right DX on the execution.
- gargron 4y agoYou're about to reinvent JSON-LD.
- cxr 4y agoThis isn't unfamiliar territory. <https://news.ycombinator.com/item?id=20117583 https://news.ycombinator.com/item?id=20117583> <https://web.archive.org/web/20190606173136/https://pfrazee.hashbase.io/blog/unwalled-garden https://web.archive.org/web/20190606173136/https://pfrazee.h...>
- rektide 4y agoI'd love to know how Gargron (mastadon author) feels about json-ld. Im just the peanut gallery but json-ld is pretty nice. Give people the right "context" & they can basically ignore that they're working woth json-ld, in a wide range of cases. But get real extensibility & interop with the other semantic web things. Of course, writing maintaining & using the translators to flop between forms is more work!