Comment by troupo
17 hours ago
> I don't quite understand. The DOM is/needs a functional API. Why bolt another DSL on top?
There are no parts of DOM APIs that are functional. It's all 90s-era Java OOP-style.
17 hours ago
> I don't quite understand. The DOM is/needs a functional API. Why bolt another DSL on top?
There are no parts of DOM APIs that are functional. It's all 90s-era Java OOP-style.
functional in the sense that it uses method calls on objects and javascript has higher order functions. It is a spectrum. I know DOM nodes are objects that use inheritance but I also know javascript is not deemed a "traditional" functional PL of course.
Javascript being a decent functional language does not make DOM API functional.
DOM API is 90-s era OOP