Open Centril opened 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.
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 👍
Fair enough ;)
The slide: https://steveklabnik.github.io/rust-in-ten-slides/basic-syntax.html#4 should probably mention that the following is not a thing:
so that people used to FP (Haskell, Idris, Erlang, Ocaml, etc.) won't be confused.