3 ms·
If you’re using Qt or Gtk with a dynamic language (e.g. pygtk/pyqt incarnations), then implementing hyperscript would be a relatively trivial task. def view(
by wruza 4y ago
If you’re using Qt or Gtk with a dynamic language (e.g. pygtk/pyqt incarnations), then implementing hyperscript would be a relatively trivial task.
def view():
return h("GtkButton",
title = "Hello”,
clicked = …
)
Then you get this hierarchy, compare to the old one, insert/remove/update controls and that’s it. Even issues like jumping focus on non-keyed elements will be the same.
Frameworks like React don’t do as much as you think they do wrt the paradigm itself. Most of work goes into pleasing performance quirks of both js and dom.