# Is 0 .\< A .\< 1 going away?

**URL:** https://discourse.julialang.org/t/is-0-a-1-going-away/1313
**Category:** Internals & Design
**Created:** [January 5, 2017, 7:38pm UTC](https://discourse.julialang.org/t/is-0-a-1-going-away/1313 "2017-01-05T19:38:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)
#### Post date: [January 5, 2017, 7:38pm UTC](https://discourse.julialang.org/t/is-0-a-1-going-away/1313/1 "2017-01-05T19:38:27Z")

</div>

Is 0 .\< A .\< 1 (where A is an array) going away in 0.6 and beyond? Would be good to know.

Reason for asking: version 0.6.0-dev.1924 (Windows 64) warns that this is deprecated.

/Paul S

---

<div class="post-metadata">

### Author: ![johnmyleswhite](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnmyleswhite/32/31_2.png) [@johnmyleswhite](https://discourse.julialang.org/u/johnmyleswhite)
#### Post date: [January 5, 2017, 7:41pm UTC](https://discourse.julialang.org/t/is-0-a-1-going-away/1313/2 "2017-01-05T19:41:56Z")

</div>

I suspect the answer is “as far you’re concerned, no, it’s not going away.”

I say it that way because I’m interpreting your question as “can I write this expression and have it evaluate to the same thing”, but the deprecation message you’re getting is likely related to deprecation of `.<` as a generic function that will be replaced with dot-broadcast syntax. But that’s a change in how that expression gets evaluated, not in what it evaluates to.

---

<div class="post-metadata">

### Author: ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)
#### Post date: [January 5, 2017, 8:54pm UTC](https://discourse.julialang.org/t/is-0-a-1-going-away/1313/3 "2017-01-05T20:54:26Z")

</div>

I think you’ve found a bug.

```julia
julia> 0 .< eye(4) .< 1
WARNING: A::AbstractArray & B::AbstractArray is deprecated, use A .& B instead.
Stacktrace:
 [1] depwarn(::String, ::Symbol) at .\deprecated.jl:64
 [2] &(::BitArray{2}, ::BitArray{2}) at .\deprecated.jl:50

```

So it’s not the `.<` that is deprecated. But it looks like that chained comparison is getting expanded to `(0 .< A) & (A .< 1)`, and the `&` there is now deprecated in favor of `.&`. Whatever is responsible for that expansion (I think it’s lowering but I could be wrong) wasn’t updated appropriately, and we must not have any chained comparisons of arrays in our tests otherwise we would have noticed by now.
