3 ms·
> Also each part of UI declaration needs it's own DSL: for UI structure definition, style system and logic behind the UI. This is actually one thing I think ru
by gpm 4y ago
> Also each part of UI declaration needs it's own DSL: for UI structure definition, style system and logic behind the UI.
This is actually one thing I think rust has going for it, the procedural macro system makes it possible to embed reasonably arbitrary DSLs in rust.
- c-smile 4y agoRust can be good for implementation of UI system but as a language-behind-UI it is bad - its advantages (e.g. strictness) directly translate to disadvantages in that area. At the end, main idea of initial Rust design is to be the language with what browser is implemented. JavaScript (in ES2020 specification) is really good enough as UI automation language. If not JS then TS. Just in case in Sciter I've added native JSX to JS. JSX is an ergonomic way of defining tree alike literals that used for UI DOM population and patching.