2 ms·
> Rust and Swift have about the same amount of syntax I wouldn't agree, I feel Swift has significantly more surface area than Rust. But even syntax and standa
by gary17the 4y ago
> Rust and Swift have about the same amount of syntax
I wouldn't agree, I feel Swift has significantly more surface area than Rust.
But even syntax and standard libraries aside, I think that Rust is significantly more "explicit", "consistent" and "predictable" than Swift. I consider those to be very important qualities in a PL. Maybe that's why Rust was easier to learn and memorize than Swift (with the exception of the Rust borrow checker and lifetime annotations that indeed have to be well understood to be even usable).
But it might be just me.
- dagmx 4y agoHmm can’t say I agree about the significantly more surface area. I switch between rust/C++/Swift fairly regularly for work, and I think they’re roughly similar in complexity with the exception of Rust having lifetime annotations and Swift having computer properties. Where I do think Swift has a lot of noise though is @attributes. There’s just so many attributes to learn, especially if you happen to do SwiftUI or ObjC interop. Though rust has the same issue , it’s just there’s no ubiquitous UI lib like SwiftUI. I imagine it would have the same if it did.