rust-in-ten-slides icon indicating copy to clipboard operation
rust-in-ten-slides copied to clipboard

Basic Syntax / Functions / Mention that functions are not curried

Open Centril opened this issue 7 years ago • 2 comments

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.

Centril avatar Apr 04 '18 14:04 Centril

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 👍

steveklabnik avatar Apr 04 '18 15:04 steveklabnik

Fair enough ;)

Centril avatar Apr 04 '18 15:04 Centril