# Unexpected result from short-circuiting (inline if)

**URL:** <https://discourse.julialang.org/t/unexpected-result-from-short-circuiting-inline-if/94400>\
**Category:** General Usage\
**Created:** [February 10, 2023, 8:57am UTC](https://discourse.julialang.org/t/unexpected-result-from-short-circuiting-inline-if/94400 "2023-02-10T08:57:08Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![c42f](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c42f/32/52842_2.png) [@c42f](https://discourse.julialang.org/u/c42f)\
**Post date:** [February 12, 2023, 9:03am UTC](https://discourse.julialang.org/t/unexpected-result-from-short-circuiting-inline-if/94400/9 "2023-02-12T09:03:03Z")

</div>

> [@mikmoore](#):
>
> Not that it would tunnel through the parentheses and try to build a `NamedTuple`

Yes this is a syntax peculiarity and I don’t like it either (basically the same issue as described here [Syntax Surprises - #35 by c42f](https://discourse.julialang.org/t/syntax-surprises/92369/35))

> [@mikmoore](#):
>
> ```julia
> julia> (a = 1), (b = 2)
> (a = 1, b = 2)
> 
> ```

Yikes this one is a definite syntax bug, we should not be allowing this!

---

_[View the full topic](https://discourse.julialang.org/t/unexpected-result-from-short-circuiting-inline-if/94400)._
