Hacker News new | ask | show | jobs
by discreteevent 2970 days ago
I think the 'easier to read' is unfair considering that you didn't use QML fur the Qt example. For me QML is easier to read than JSX (and quantitatively it is less verbose)
1 comments

Is QML declarative?
As declarative as JSX

Menu {

  title:qsTr("File")

  MenuItem {

    text: qsTr("&Open")

    onTriggered: console.log("Open action triggered");

  }

}
Aren't all markup languages declarative by definition?
QML isn't only about markup, it also support property binding directly in the language - it's a full-fledged reactive environment.
Probably?