Skip to content

djfurman/Rust-Chapter-3-Variables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning Rust

My coding along with the official RustLang documentation

Variables and Mutability

Learnings

  • Rust variables are immutable unless specified otherwise
  • Variables can be shadowed and even change data types after declaration
  • Constants are immutable and blocked from override
    • Large numbers can use "_" as a separator and Rust will correctly interpret them
    • This is an amazing feature, especially when dealing with large numbers as it combines readability with execution. Python and Go should adopt this.

About

Chatper three of the rust learning guide. Variables and mutability.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages