Files
docs-rust/ch03/ch03-00-common-programming-concepts.html
2026-06-22 21:27:36 +05:30

29 lines
1.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Common Programming Concepts</title>
</head>
<body>
<h1 id="common-programming-concepts"><a class="header" href="#common-programming-concepts">Common Programming Concepts</a></h1>
<p>This chapter covers concepts that appear in almost every programming language
and how they work in Rust. Many programming languages have much in common at
their core. None of the concepts presented in this chapter are unique to Rust,
but well discuss them in the context of Rust and explain the conventions
around using them.</p>
<p>Specifically, youll learn about variables, basic types, functions, comments,
and control flow. These foundations will be in every Rust program, and learning
them early will give you a strong core to start from.</p>
<section class="note" aria-role="note">
<h4 id="keywords"><a class="header" href="#keywords">Keywords</a></h4>
<p>The Rust language has a set of <em>keywords</em> that are reserved for use by the
language only, much as in other languages. Keep in mind that you cannot use
these words as names of variables or functions. Most of the keywords have
special meanings, and youll be using them to do various tasks in your Rust
programs; a few have no current functionality associated with them but have
been reserved for functionality that might be added to Rust in the future. You
can find the list of the keywords in <a href="../appendix/appendix-01-keywords.html">Appendix A</a><!-- ignore -->.</p>
</section>
</body>
</html>