# One-line \`if ... then ...\` syntax

**URL:** <https://discourse.julialang.org/t/one-line-if-then-syntax/79573>\
**Category:** Internals & Design\
**Tags:** syntax\
**Created:** [April 16, 2022, 2:27pm UTC](https://discourse.julialang.org/t/one-line-if-then-syntax/79573 "2022-04-16T14:27:12Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [April 17, 2022, 6:13am UTC](https://discourse.julialang.org/t/one-line-if-then-syntax/79573/18 "2022-04-17T06:13:19Z")

</div>

> [@jar1](#):
>
> Yes I am in favor of removing `a && b` , `a || b` in Julia 2.0. Julia has `if` expressions (rather than statements), which removes the need for such special cases.
> 
> The same applies to `a ? b : c` .

While a good discussion is always fun, I think good to point out that this will never actually happen: [PSA: Julia is not at that stage of development anymore](https://discourse.julialang.org/t/psa-julia-is-not-at-that-stage-of-development-anymore/44872)

> There will be a time when we start working on Julia 2.0, which will include some breaking changes, or we wouldn’t call it 2.0, we would just call it Julia 1.x for some value of x. At that point in time, we can consider breaking changes. But despite what it sounds like, this is not the time to make all the random changes that anyone might want to. Frankly, that time has passed for Julia and will never come again. There will probably be a few renamings of unfortunately named things. But that’s not what the 2.0 release is really about.

Your proposed changes would create such _massive_ havoc throughout the ecosystem that probably more than 90% of code will stop working. There might not be any major packages left standing, and the reputation of the language would be devastated.

Removing `&&` and `||` is basically impossible. The best you could do is introduce a more attractive alternative, and hope that it wins out over time. But so far I haven’t seen any alternatives I would use.

---

_[View the full topic](https://discourse.julialang.org/t/one-line-if-then-syntax/79573)._
