![]() My assessment is that there's enough familiar DNA that most experienced developers should be able to pick it up easily enough. Yes, there are some new rules and a few syntactic oddities.ĭesign and abstraction are language-agnostic. But the benefit has the potential to be huge. All that banging your head against the wall when you step in one of the usual open manholes? Gone. Think of the time saved, the time-to-market gained, the customer nightmares avoided. I speak with the zeal of the newly evangelized. But that's based on 40 years of real-world experience, and as a student of engineering failures and security issues. ![]() While at first glance there are a lot of new concepts to digest in Rust, in many cases they're familiar from other languages, just with a different approach and terminology. Ownership and borrowing: these are first-class concepts in Rust, critical to the safety it offers.The Rust team did make a few explicit design choices that have ripple effects, but they still fit in with familiar concepts. This includes explicit lifetime annotations to override compiler defaults. But they're familiar to anyone who knows C++ smart pointers, references, and move semantics.Traits: these are like interfaces, abstract classes, and virtual functions in object-oriented languages.They provide polymorphism, meeting the Open-Closed Principle.No inheritance, only composition: What?!? Yes, a different design choice, yet still offers polymorphism. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |