# Let with kwargs?

**URL:** <https://discourse.julialang.org/t/let-with-kwargs/11280>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [May 31, 2018, 6:25am UTC](https://discourse.julialang.org/t/let-with-kwargs/11280 "2018-05-31T06:25:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![QuantumFractal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quantumfractal/32/4292_2.png) [@QuantumFractal](https://discourse.julialang.org/u/QuantumFractal)\
**Post date:** [May 31, 2018, 6:25am UTC](https://discourse.julialang.org/t/let-with-kwargs/11280/1 "2018-05-31T06:25:24Z")

</div>

Hi there, I was going through the docs and had a quick question regarding `let` keyword.  
Typical usage:

```julia
let a=1, b=2
  println("a: $a, b: $b")
end

```

Which parses to:

```julia
(let println("a: $a, b: $b") (= a 1) (= b 2))

```

My question is, why can’t `let` take `kwargs...` as well?  
I haven’t looked into macros much but I think it would be possible to allow for the following:

```julia
d = Dict("a"=>1, "b"=>2)
let d...
  println("a: $a, b: $b")
end

```

You’d have to include a `kwargs` like construct similar to `function`  
Apologies if this a basic question, just wanted to know the rationale

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [May 31, 2018, 6:52am UTC](https://discourse.julialang.org/t/let-with-kwargs/11280/2 "2018-05-31T06:52:44Z")

</div>

I’m pretty sure this cannot work as `let` is syntax construct (and not a macro either), i.e. it has only access to the code and not runtime values of variables.
