varlink.github.io
varlink.github.io copied to clipboard
Clarification on interface grammar with struct
Hey!
I've been playing around writing an implementation of this to get the feel for things, and had a question while writing the interface parser.
We have:
"method" name struct -> struct
And I just wanted clarification that you cannot have:
"method" name type -> type
e.g. recursive decent parsing of method need-not carry a type-table of types defined before it.
Or put another way, can you have defined types be the return value or must defined types exist within the retrurn value struct only? (field: Type)
never Type