-
I don't understand why Iced is so verbose:
It doesn't improve performance noticeably and makes code considerably harder to read. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
If you dislike it, you can have your own methods that create widgets like you said. |
Beta Was this translation helpful? Give feedback.
-
That's because Rust and Elm are two completely different languages. Iced is a GUI library for Rust, not Elm. Therefore it's using the Rust syntax. Yes, it is possible to implement macros like
As @yusdacra already mentioned you can use let foo: Column<_> = vec![a, b].into(); |
Beta Was this translation helpful? Give feedback.
-
No particular reason! We just haven't prioritized reducing the verbosity of the API. As people pointed out, nothing is stopping you from creating your own helper functions or methods! I think we could build a new crate with helper functions to easily build UIs on top of |
Beta Was this translation helpful? Give feedback.
No particular reason! We just haven't prioritized reducing the verbosity of the API.
As people pointed out, nothing is stopping you from creating your own helper functions or methods!
I think we could build a new crate with helper functions to easily build UIs on top of
iced
, additional custom themes included! Maybe we could call iticed-ui
(analogous toelm-ui
)?