|
|
|
|
|
by sidlls
3549 days ago
|
|
This is neat. I'm writing a very badly constructed toy application to get used to Rust, and some of the differences have been interesting to note. In this case, when I first encountered Rust's enums the first thing that came to mind is the fact that C and C++ both offer the ability to support tagged-unions, but certainly not as a first-class entity and definitely with a lot more cruft, with or without safety checks. For me the jury is still out on where the best "fit" for Rust is. I really appreciate the enforced safety of Rust for higher-level systems applications programming. I'm not convinced yet it won't just get in the way pointlessly for much lower level programming (especially embedded). Perhaps that's just my relative novice understanding of Rust, though. |
|
Even after more than a year of learning the language I do find that some things take me longer to build, but the end product is far better.