The hello world code example reinforces my opinion that Rust is verbose and ugly.
I think this is more of a function of the GPUI library being very powerful. If you just write "hello world" in rust that is a lot shorter.
Or, there is a lot going on there and the library/Rust doesn't hide it from you. Your mileage will vary depending on which format you prefer and that's why I pick Rust.
Idiomatic Rust seemed to always use a ton of method chaining much more than any other language, even TypeScript, so a lot of Rust code just reads like "names.iter().cloned().map(|name|name.trim().to_string()).filter(|name| name.is_empty()).map(|name| name.to_lowercase()).filter_map(...)" all the time.
Rust is ugly as a beginner, beautiful as an intermediate, and sorta ugly again as an expert.
I'm not sure what you mean... It's a beautiful dialect of Klingon.
well, luckily we don't have to write the code ourselves anymore
Who cares. You might as well be saying assembly is verbose and ugly. That is just the output of "create a hello world gpui app" prompt.
Rust is not to blame for that example. Here's the same example rewritten with iced:
Also this is a pretty shit example because it's mostly showing styling... any in any sane app, you have a predefined themeThe typical GUI example is a counter
Syntax is rarely a reason to choose a language
If Rust feels "ugly" to you, may I suggest you consider how that comes from lack of familiarity, rather than an intrinsic shortcoming of the language?