`let x` without assignment (`let x = 1`)

A variable without an assignment declares a new local variable in a let block but does not give it a value.

This was recently clarified in the docs: clarify `let x` without an assignment by stevengj · Pull Request #48122 · JuliaLang/julia · GitHub

See also the discussion here Syntax: How to write a cleaner code for many composed computations - #12 by uniment

4 Likes