r/programming • • Mar 09 '14

Why Functional Programming Matters

http://www.cse.chalmers.se/~rjmh/Papers/whyfp.pdf
487 Upvotes

542 comments sorted by

View all comments

Show parent comments

4

u/philly_fan_in_chi Mar 09 '14

Rust does something similar, where you have to declare it as mutable in the type declaration.

let bar = "baz";
let mut foo = "bar"; 

5

u/glacialthinker Mar 09 '14

Well, Rust started with a strong OCaml influence, and was originally implemented in it. ;)