tc39 / proposal-idl

Investigation into using an Interface Description Language (IDL) in the ECMAScript standard
37 stars 5 forks source link

Web component definition language #2

Open pabloalmunia opened 5 years ago

pabloalmunia commented 5 years ago

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.

littledan commented 5 years ago

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?