Add key->[known structure] schemas to j2s #50
Loading…
Reference in a new issue
No description provided.
Delete branch "lda/Cytoplasm:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #49.
@ -38,6 +38,7 @@
#define MAX_DEPENDENCIES 32
#define IsDelimited(field, c1, c2) (*field == c1 && field[strlen(field) - 1] == c2)
Very clever. I don't know if
IsDelimited
is a great name though. But I also can't think of a better one so maybe it is fine.I like this. Can you show a quick example of how it is used? Or can you point to a specific place in the code where this is used? I just want to see it in use, but I think the idea is good.
It generally behaves just like the
[type]
syntax, except that operations(getting, listing, ...) now useHashMap
s instead ofArray
s.So, for example with a schema(note that some types aren't declared), where:
I can now, from C, do things like this:
Matrix also sometimes lean into this pattern (see https://spec.matrix.org/v1.7/client-server-api/#get_matrixclientv3sync, especially the
rooms
fields)Okay yeah that's pretty nice. Good work.