# Why did converting && and || to \`and\` and \`or\` die?

**URL:** <https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030>\
**Category:** Internals & Design\
**Tags:** question, proposal\
**Created:** [July 23, 2017, 9:12pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030 "2017-07-23T21:12:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickeubank](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nickeubank/32/3878_2.png) [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Post date:** [July 23, 2017, 9:12pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/1 "2017-07-23T21:12:06Z")

</div>

Relatively new to Julia, and like most people here love it. But I miss the readability of `and` and `or`. I discovered a few git issues on moving to a python-like syntax for the `and` and `or` operators (like [https://github.com/JuliaLang/julia/issues/5238](https://github.com/JuliaLang/julia/issues/5238)).

The issue comments seem numerous and more or less universally in favor of the change, with interjections in favor from people like @StefanKarpinski as recently as 2015 (two years after the issue was technically closed), so I was just wondering: why did this die? Does it still have to?

---

<div class="post-metadata">

**Author:** ![ararslan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ararslan/32/3825_2.png) [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Post date:** [July 23, 2017, 10:28pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/2 "2017-07-23T22:28:01Z")

</div>

The issue has been discussed ad nauseum and it was decided not to be a good idea. I don’t believe there are any plans to revisit it. Rather than rehashing the discussion, I’ll point you to [RFC: Make `and` & `or` aliases for `&&` and `||`. by Ismael-VC · Pull Request #19788 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/19788) for reference. Like anything, `&&` and `||` will just take some getting used to for those coming from languages that have other ways of writing that.

---

<div class="post-metadata">

**Author:** ![kevin.squire](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevin.squire/32/62_2.png) [@kevin.squire](https://discourse.julialang.org/u/kevin.squire)\
**Post date:** [July 24, 2017, 6:11am UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/3 "2017-07-24T06:11:12Z")

</div>

> it was decidedly not a good idea.

@ararslan, just curious, did you mean what was written, or that it was “decided that it was not a good idea”? 🙂

Cheers!

---

<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:** [July 24, 2017, 1:37pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/4 "2017-07-24T13:37:32Z")

</div>

There’s just not enough in favor of it aside from some very subjective judgements. Julia currently sticks to very standard operators for this functionality and there’s no really strong technical argument for changing that. Sure, some people would prefer writing `and` and `or` instead of `&&` and `||`, but then again some people feel the opposite way. We really don’t want both options in the language – that has only led to confusion and sadness in Perl and Ruby. So without a really strong reason to change this, the decision goes to the status quo.

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [July 24, 2017, 2:00pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/5 "2017-07-24T14:00:00Z")

</div>

This post was temporarily hidden by the community for possibly being off-topic, unfocused, inappropriate, or spammy.

---

<div class="post-metadata">

**Author:** ![nickeubank](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nickeubank/32/3878_2.png) [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Post date:** [July 24, 2017, 4:58pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/6 "2017-07-24T16:58:44Z")

</div>

Thanks @ararslan! Looks like the discussion was in that pull, not the issue, so I missed it. Not sure that, in reading it, that it’s fair to characterize the consensus as “decidedly not a good idea” – seems it was rather close – but happy to see it got a fair hearing!

---

<div class="post-metadata">

**Author:** ![ararslan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ararslan/32/3825_2.png) [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Post date:** [July 24, 2017, 6:03pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/7 "2017-07-24T18:03:25Z")

</div>

Yes I meant the latter, thanks.

---

<div class="post-metadata">

**Author:** ![RoyiAvital](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/royiavital/32/571_2.png) [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Post date:** [July 24, 2017, 8:33pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/8 "2017-07-24T20:33:43Z")

</div>

What about the option `and(a, b)`?  
Namely it would be great to have those in both forms.

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [July 24, 2017, 9:02pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/9 "2017-07-24T21:02:51Z")

</div>

No it is not a function call and must not be written like one.

---

<div class="post-metadata">

**Author:** ![RoyiAvital](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/royiavital/32/571_2.png) [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Post date:** [July 24, 2017, 9:14pm UTC](https://discourse.julialang.org/t/why-did-converting-and-to-and-and-or-die/5030/10 "2017-07-24T21:14:32Z")

</div>

You’re correct.  
I mixed Short Circuit operation and Logical Operation.
