# Allowing for keyword arguments in do-block

**URL:** <https://discourse.julialang.org/t/allowing-for-keyword-arguments-in-do-block/19244>\
**Category:** Internals & Design\
**Tags:** proposal\
**Created:** [January 3, 2019, 6:51pm UTC](https://discourse.julialang.org/t/allowing-for-keyword-arguments-in-do-block/19244 "2019-01-03T18:51:34Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![o314](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/o314/32/252_2.png) [@o314](https://discourse.julialang.org/u/o314)\
**Post date:** [August 13, 2024, 1:51am UTC](https://discourse.julialang.org/t/allowing-for-keyword-arguments-in-do-block/19244/11 "2024-08-13T01:51:49Z")

</div>

Another solution :  
Handle a special mode (breathe deeply and enjoy - without any parenthesis juggling) in the parser at the do form level.  
Most frequently the do form expects quickly a line break after the statement of the args.  
One can capture there the first ‘;’ before first NL, its left side, and give it back as a passing of some named args.  
Some work for [@c42f](https://github.com/c42f) ?

SEE ALSO

- [do-block with keyword arguments · Issue #50395 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/50395)
- [Do-block syntax with keyword arguments](https://discourse.julialang.org/t/do-block-syntax-with-keyword-arguments/101111/)

---

_[View the full topic](https://discourse.julialang.org/t/allowing-for-keyword-arguments-in-do-block/19244)._
