rust_brain_teasers_preface

Rust Brain Teasers Preface

Return to Rust Brain Teasers, Rust Bibliography, Rust, Rust DevOps - Rust SRE - Rust CI/CD, Cloud Native Rust - Rust Microservices - Serverless Rust, Rust Security - Rust DevSecOps, Functional Rust, Rust Concurrency, Async Rust, Rust Data Science - Rust and Databases, Rust Machine Learning, Rust Bibliography, Rust Courses, Rust Glossary, Awesome Rust, Rust GitHub, Rust Topics

“Rust is a very consistent language. The Rust Core Team has worked hard to ensure that Rust does what you ask and doesn’t surprise you by performing additional tasks behind your back. Rust’s toolset—particularly Clippy and Rust’s safety guarantees—check your program for common mistakes and often suggest improvements. It’s common for Rust programmers to notice that writing their program in Rust takes a little longer, but when they run it, it works as expected.” (RstBrnTsr 2022)

“The Rust language has a few quirks. Sometimes they creep in at the cracks between systems, and sometimes they’re a conscious design choice to avoid doing something worse. In this book, you’ll review a series of self-contained Rust programs that explore these quirks. Each program, known as a brain teaser, teaches an aspect of Rust that is designed to surprise you. As you read each brain teaser, try to guess the program’s output correctly. The possible answers are:” (RstBrnTsr 2022)

  • The program won’t compile.
  • The program produces some unexpected output (for example, “Arithmetic still works!”).
  • The program panics and terminates with an error message.

“After each brain teaser, you’ll get an explanation of why the program produces the result it does and how similar issues might affect the code you write in your own programs. To get the most out of this book, try running the code yourself before turning the page and reading the answer and discussion. Taking these steps helps to reinforce what you’re learning. By understanding these quirks, you can become a better Rust programmer—and hopefully, avoid these pitfalls in your own projects.” (RstBrnTsr 2022)

Fair Use Sources

Rust: Rust Fundamentals, Rust Inventor: Rust Language Designer: Graydon Hoare on July 7, 2010; Rust RFCs, Rust Scripting, Rust Keywords, Rust Built-In Data Types, Rust Data Structures - Rust Algorithms, Rust Syntax, Rust OOP - Rust Design Patterns, Rust Package Manager (cargo-crates.io - Rust Crates - Rust Cargo), Rust Virtualization, Rust Interpreter, Rust REPL, Rust IDEs (JetBrains RustRover, IntelliJ - CLion with JetBrains Rust Plugins, Visual Studio Code), Rust Development Tools, Rust Linter, Rustaceans-Rust User, Rust Uses, List of Rust Software, Rust Popularity, Rust Compiler (rustc), Rust Transpiler, Rust DevOps - Rust SRE, Rust Data Science - Rust DataOps, Rust Machine Learning, Rust Deep Learning, Functional Rust, Rust Concurrency - Rust Parallel Programming - Async Rust, Rust Standard Library, Rust Testing, Rust Libraries, Rust Frameworks, Rust History, Rust Bibliography, Manning Rust Series, Rust Glossary - Rust Official Glossary, Rust Topics, Rust Courses, Rust Research, Rust GitHub, Written in Rust, Rust Awesome List. (navbar_rust)


Cloud Monk is Retired (for now). Buddha with you. © 2005 - 2024 Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


rust_brain_teasers_preface.txt · Last modified: 2022/09/29 21:59 by 127.0.0.1