2 ms·
> Why not design UIs in an editor that saves layout to XML? It's funny because that's my personal nightmare. I'm a JS to Rust developer so I'm biased but the l
by afavour 4y ago
> Why not design UIs in an editor that saves layout to XML?
It's funny because that's my personal nightmare. I'm a JS to Rust developer so I'm biased but the likes of React and Svelte have spoiled me with the ease with which you can integrate reactive components into a UI in a way that you simply can't when you're using a separate XML file.
I agree that the example given looks old-school but Rust has a wonderful macro system, I can imagine building a really slick compose method with macros that generates this kind of code underneath.