This is a very interesting and important proposal.
We are working in a Web Components Definition Language that includes the declarative description as HTML tag, and imperative description object with methods (with parameters and return) and properties. We are building this formal language on a JSON / YAML structure. A great advantage of this second variant is the ease with which programmers can read the interfaces specification.
We have evaluated languages as WebIDL, but they are very complex to use and are not directly interpreted by Javascript.
A formal language in JSON format manage to describe the interface of an object or a function would be very useful.
You have our humble support to advance this proposal.
Hey, I would be really interested to hear more about what problems you faced with WebIDL. If it were somehow built-in and executable as JS, what problems would remain?
This is a very interesting and important proposal.
We are working in a Web Components Definition Language that includes the declarative description as HTML tag, and imperative description object with methods (with parameters and return) and properties. We are building this formal language on a JSON / YAML structure. A great advantage of this second variant is the ease with which programmers can read the interfaces specification.
We have evaluated languages as WebIDL, but they are very complex to use and are not directly interpreted by Javascript.
A formal language in JSON format manage to describe the interface of an object or a function would be very useful.
You have our humble support to advance this proposal.