# Order of parameters in a function that has side effects

**URL:** <https://discourse.julialang.org/t/order-of-parameters-in-a-function-that-has-side-effects/90397>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 17, 2022, 12:06pm UTC](https://discourse.julialang.org/t/order-of-parameters-in-a-function-that-has-side-effects/90397 "2022-11-17T12:06:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prittjam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/prittjam/32/21267_2.png) [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Post date:** [November 17, 2022, 12:06pm UTC](https://discourse.julialang.org/t/order-of-parameters-in-a-function-that-has-side-effects/90397/1 "2022-11-17T12:06:17Z")

</div>

Is it a Julia convention to list the parameters with side effects first in the list of parameters, where those that have no side effects are listed last? I was looking at some of the code in base and the convention did not seem consistent.

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [November 17, 2022, 12:09pm UTC](https://discourse.julialang.org/t/order-of-parameters-in-a-function-that-has-side-effects/90397/2 "2022-11-17T12:09:09Z")

</div>

See  
[https://docs.julialang.org/en/v1.8/manual/style-guide/#Write-functions-with-argument-ordering-similar-to-Julia-Base](https://docs.julialang.org/en/v1.8/manual/style-guide/#Write-functions-with-argument-ordering-similar-to-Julia-Base)

And regarding:

> [@prittjam](#):
>
> I was looking at some of the code in base and the convention did not seem consistent.

they may be older than the style guide. (Just to provide a simple explanation).
