wiki/lang.rust.org
2022-07-29 15:41:17 +00: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