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

**URL:** <https://discourse.julialang.org/t/let-x-without-assignment-let-x-1/95297>\
**Category:** General Usage\
**Created:** [February 28, 2023, 1:10am UTC](https://discourse.julialang.org/t/let-x-without-assignment-let-x-1/95297 "2023-02-28T01:10:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 28, 2023, 1:34am UTC](https://discourse.julialang.org/t/let-x-without-assignment-let-x-1/95297/2 "2023-02-28T01:34:01Z")

</div>

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](https://github.com/JuliaLang/julia/pull/48122)

See also the discussion here [Syntax: How to write a cleaner code for many composed computations - #12 by uniment](https://discourse.julialang.org/t/syntax-how-to-write-a-cleaner-code-for-many-composed-computations/92211/12)

---

_[View the full topic](https://discourse.julialang.org/t/let-x-without-assignment-let-x-1/95297)._
