One major issue is the separation between the Dom_html and Dom_svg modules. They each define their own different types, such as (
.element and (
.document. In the case of element, I was able to work around the incompatibility by coercing to a common supertype. However, I just hit a roadblock because
Dom_svg.document is not a supertype of
document attribute is of type
Dom_html.document, and I cannot use it as a
- Is it a good idea for me to create my own bindings and share them as a library?
- If so, may I solicit advice from other people to see how I may design the library to be useful for them?
- Would it be too ambitious to attempt to support both Js_of_ocaml and BuckleScript, to prevent fragmentation between compilers? The two compilers have different FFIs.