# Chained comparison evaluation order

**URL:** https://discourse.julialang.org/t/chained-comparison-evaluation-order/8999
**Category:** General Usage
**Created:** [February 11, 2018, 5:30pm UTC](https://discourse.julialang.org/t/chained-comparison-evaluation-order/8999 "2018-02-11T17:30:47Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [February 11, 2018, 9:26pm UTC](https://discourse.julialang.org/t/chained-comparison-evaluation-order/8999/3 "2018-02-11T21:26:42Z")

</div>

The evaluation order is undefined and could be changed. You should probably not be counting on side effects from expressions in comparison chains. IIRC, @jeff.bezanson did it this way because it could be implemented slightly more efficiently/easily. That said, I would support making the evaluation order defined and guaranteed left-to-right.

---

_[View the full topic](https://discourse.julialang.org/t/chained-comparison-evaluation-order/8999)._
