What is the "let" keyword in functional languages like F# and OCaml for?

Posted by Trix on Stack Overflow See other posts from Stack Overflow or by Trix
Published on 2010-05-16T14:12:02Z Indexed on 2010/05/16 14:20 UTC
Read the original article Hit count: 183

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about functional

Related posts about F#