wiki/notebook/lang.rust.org
Gabriel Arazas 8d88983e21 Update the notebook
Not all changes are here though.
2022-01-09 12:24:55 +08:00

639 B

Rust language

  • Rust handbook
  • Haskell with the familiarity of C
  • variables are immutable by default and has to be annotated with the mut keyword; for full immutability, you can declare constants with the const keyword and has to be type-annotated
  • namespacing is available through mod and all of the items are private by default; if you intended an item to be accessed with others, you have to add the pub keyword