4 ms·
Regarding ocsigen, It's more appropriate to point to tyxml[1] and its syntax extension [2]! Note that tyxml goes quite further than Rust's typed-html: the nest
by Drup 8y ago
Regarding ocsigen, It's more appropriate to point to tyxml[1] and its syntax extension [2]!
Note that tyxml goes quite further than Rust's typed-html: the nesting is significantly more flexible, type inference is still complete, and it will verify additional properties like "don't use <a> inside <a>". It can also be used conjointly with reactive and/or isomorphic programming.
[1]: https://ocsigen.org/tyxml/ https://ocsigen.org/tyxml/
[2]: https://ocsigen.org/tyxml/4.3.0/manual/ppx https://ocsigen.org/tyxml/4.3.0/manual/ppx
- jonathanyc 8y agoAs an OCaml user, I do not see at first glance how any of your statements about where tyxml “goes quite further” are true, with the exception of completeness on the Rust end (but I am very dubious that there is completeness on the OCaml end—HTML is not as simple as you’d think). This makes me think that if you’d like to convince people who are not OCaml users to look at your library, you should provide examples of why these things are true and how they are useful. Otherwise, we just come off as smug FP weenies.