What is the "let" keyword in functional languages like F# and OCaml for?
- by Trix
When looking at F#, Ocaml and other functional language code examples I notice that the let keyword is used very often.
Why do you need it? Why were the languages designed to have it?
Why can't you just leave it out? e.g: let x=4 becomes x=4