3 ms·
Congratulations - you've invented S-Expressions! Fortunately for you, there's a whole family of programming languages[0] that are based solely on this syntax!
by krebs_liebhaber 6y ago
Congratulations - you've invented S-Expressions! Fortunately for you, there's a whole family of programming languages[0] that are based solely on this syntax!
If you want to see a mature library that uses this syntax to represent both DOM elements and code, I'd suggest checking out Reagent[1].
[0] https://en.wikipedia.org/wiki/Lisp_(programming_language) https://en.wikipedia.org/wiki/Lisp_(programming_language)
[1] https://reagent-project.github.io/ https://reagent-project.github.io/