# Which is better? Parameters.@with\_kw vs @Parameters.with\_kw

**URL:** <https://discourse.julialang.org/t/which-is-better-parameters-with-kw-vs-parameters-with-kw/66103>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [August 10, 2021, 3:21am UTC](https://discourse.julialang.org/t/which-is-better-parameters-with-kw-vs-parameters-with-kw/66103 "2021-08-10T03:21:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hobbymarks](https://avatars.discourse-cdn.com/v4/letter/h/6de8d8/32.png) [@hobbymarks](https://discourse.julialang.org/u/hobbymarks)\
**Post date:** [August 10, 2021, 3:21am UTC](https://discourse.julialang.org/t/which-is-better-parameters-with-kw-vs-parameters-with-kw/66103/1 "2021-08-10T03:21:04Z")

</div>

After “import Parameters”, when use “with\_kw” ,which is better?  
Parameters.@with\_kw or @Parameters.with\_kw

---

<div class="post-metadata">

**Author:** ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)\
**Post date:** [August 10, 2021, 3:44am UTC](https://discourse.julialang.org/t/which-is-better-parameters-with-kw-vs-parameters-with-kw/66103/2 "2021-08-10T03:44:10Z")

</div>

I’ve only ever seen the first version used - I honestly thought the second form would be a syntax error until I tried it myself. Note that you can get most of the features of `Parameters.@with_kw` with the built-in `Base.@kwdef` macro.
