title: Can I pass keyword args to do-blocks in julia?
body: <p>Below is an example:</p>
  
  <pre><code>def(f::Function) = f
  
  f1 = def() do x
      x
  end
  
  f2 = def() do x, y
      x, y
  end
  
  f3 = def() do x, y; z # this syntax is accepted
      x, y, z
  end
  
  f1(1)
  f2(1, 2)
  f3(1, 2, z=3) # ERROR: LoadError: function #13 does not accept keyword arguments
  </code></pre>
  
  <p>The example below is not my actual use case, but it illustrates the question. How should I handle kwargs in a do-block?</p>