Scope Rules, Start Rust




CS152

Chris Pollett

Sep 29, 2021

Outline

Introduction

Nested Subroutines

Nested Scope Rule

Nested Subroutines and the Stack

Static Chains

Declaration Order

Declaration and Definitions

Nested Blocks

In-Class Exercise

Modules

Dynamic Scoping Example

Rust

Hello World

Cargo -- The Rust Package Manager

Modifying Cargo.toml, Building and Running Projects

Publishing Cargo Projects