3 ms·
I used to think this too. And I have to admit OO does lend itself well to GUI and hierarchical structures (IMO probably the only case I think it is actually use
by leshow 6y ago
I used to think this too. And I have to admit OO does lend itself well to GUI and hierarchical structures (IMO probably the only case I think it is actually useful). But that's not to say that there aren't declarative methods that are equally nice to use, Elm has done a lot to popularize this style of coding GUIs.
example in Haskell, https://owickstrom.github.io/gi-gtk-declarative/app-simple/ https://owickstrom.github.io/gi-gtk-declarative/app-simple/
or even take a look at yew in Rust which is also elm-style, https://github.com/yewstack/yew/blob/master/examples/counter/src/main.rs https://github.com/yewstack/yew/blob/master/examples/counter...