steveklabnik / rust-in-ten-slides

Short presentations about Rust syntax + concepts
https://steveklabnik.github.io/rust-in-ten-slides/
72 stars 6 forks source link

Basic Syntax / Functions / Mention that functions are not curried #2

Open Centril opened 6 years ago

Centril commented 6 years ago

The slide: https://steveklabnik.github.io/rust-in-ten-slides/basic-syntax.html#4 should probably mention that the following is not a thing:

fn add (x: i32) -> (y : i32) -> i32 {
   x + y
}

so that people used to FP (Haskell, Idris, Erlang, Ocaml, etc.) won't be confused.

steveklabnik commented 6 years ago

I think this is probably too much for the Basic Syntax deck, as it's already pretty full. I think a full ten slides on functions and closures would include this, though 👍

Centril commented 6 years ago

Fair enough ;)