# Is the order of function argument evaluation stable?

**URL:** <https://ziggit.dev/t/is-the-order-of-function-argument-evaluation-stable/17415>\
**Category:** Help\
**Tags:** language, compiler\
**Created:** [August 29, 2026, 5:07pm UTC](https://ziggit.dev/t/is-the-order-of-function-argument-evaluation-stable/17415 "2026-08-29T17:07:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Sze](https://ziggit.dev/user_avatar/ziggit.dev/sze/32/496_2.png) [@Sze](https://ziggit.dev/u/Sze)\
**Post date:** [August 29, 2026, 6:07pm UTC](https://ziggit.dev/t/is-the-order-of-function-argument-evaluation-stable/17415/4 "2026-08-29T18:07:08Z")

</div>

The part about the comma operator is talking about C, I think this part is more relevant:

> [@Does Zig guarantee left-to-right order of evaluation?](https://ziggit.dev/t/does-zig-guarantee-left-to-right-order-of-evaluation/2684/3):
>
> As such, whilst I do not know if it has been formally defined at any point, I do expect Zig to ultimately include the status quo behavior in its spec, where sequencing of side effects always happens in the order of the source code (which I can confirm is guaranteed in the current compiler implementation, and in fact would be quite difficult for us to change due to how the compiler pipeline is structured).

---

_[View the full topic](https://ziggit.dev/t/is-the-order-of-function-argument-evaluation-stable/17415)._
