<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Coding Fundamentals on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/coding-fundamentals/</link><description>Recent content in Coding Fundamentals on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 25 Oct 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/coding-fundamentals/index.xml" rel="self" type="application/rss+xml"/><item><title>Core Concepts: Control Flow and Functions</title><link>https://ai-blog.noorshomelab.dev/rust-guide/core-concepts-control-flow-functions/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rust-guide/core-concepts-control-flow-functions/</guid><description>&lt;h1 id="core-concepts-control-flow-and-functions"&gt;Core Concepts: Control Flow and Functions&lt;/h1&gt;
&lt;p&gt;Every useful program needs to be able to make decisions and repeat actions. This chapter introduces you to Rust&amp;rsquo;s control flow constructs (&lt;code&gt;if&lt;/code&gt; expressions, &lt;code&gt;loop&lt;/code&gt;, &lt;code&gt;while&lt;/code&gt;, &lt;code&gt;for&lt;/code&gt;) and how to write reusable blocks of code using functions.&lt;/p&gt;
&lt;h2 id="control-flow"&gt;Control Flow&lt;/h2&gt;
&lt;p&gt;Control flow determines the order in which statements are executed in a program.&lt;/p&gt;
&lt;h3 id="if-expressions"&gt;&lt;code&gt;if&lt;/code&gt; Expressions&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;if&lt;/code&gt; expression allows you to execute code conditionally. The condition must always be a &lt;code&gt;bool&lt;/code&gt; (boolean) type. Rust does not implicitly convert non-boolean types to booleans.&lt;/p&gt;</description></item></channel></rss>