为什么像 SwiftUI 或 Flutter/Dart 或 Compose/Kotlin 这样的 UI 系统使用声明式方法而不是命令式方法来定义图形用户界面?
(A) Does it have to do with handling asynchronous events?
(B) Does it have to do with state management?
(C) Does it have to do with (A) and (B)?
(D) Does it have to do with an evolution of in the concepts of GUI design?
(E) Is it a mere fashion?
(F) why used GTK+ or Java Swing handle the same task differently (i.e. using an imperative approach)?
JS 框架似乎使用相同的方法(React、Vue)。