Skip to content
nive.sh

Loading index…

↑↓ navigate · ↵ opennive.sh

Series · 3 parts · 9 min total

Hello, Rust!

Rust is a statically typed programming language. This means that all values must have a known type at compile time. So how did we get away without adding annotations in our Hello, Rust example? The Rust compiler is quite excellent at type inference and will often infer types for your values and only ask you to specify a type if it can't.

  1. 01

    Jun 23, 2023 · 3 min read

    Scalars

    Rust is a statically typed programming language. This means that all values must have a known type at compile time. So how did we get away without adding annotations in our Hello, Rust example? The Rust compiler is quite excellent at type inference and will often infer types for your values and only ask you to specify a type if it can't.

  2. 02

    Jun 23, 2023 · 3 min read

    Statements and Variables

    Code is typically composed of statements. Statements consist of one or more values and operators. Initialising a variable, setting it to the return value of a function call, even calling a macro (like the println macro we saw a while ago) are all examples of statements.

  3. 03

    Jun 27, 2023 · 5 min read

    Arrays and Tuples

    There are two primitive compound types in Rust: Arrays and Tuples.

Taking on new projects

Let’s build something that lasts.

Tell me about the storefront, product or platform you’re working on. A 30-minute call is usually enough to map the first steps.

Email

hey@nive.sh

Local time

--:-- · Gurugram (IST)