# |\> operator precedence

**URL:** https://discourse.julialang.org/t/operator-precedence/3286
**Category:** Internals & Design
**Tags:** question
**Created:** [April 19, 2017, 6:30pm UTC](https://discourse.julialang.org/t/operator-precedence/3286 "2017-04-19T18:30:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Diego\_Javier\_Zea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diego_javier_zea/32/1858_2.png) [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)
#### Post date: [April 19, 2017, 6:30pm UTC](https://discourse.julialang.org/t/operator-precedence/3286/1 "2017-04-19T18:30:08Z")

</div>

Hi!

Why does `|>` has higher precedence than comparison and control flow operators?  
Should `|>` have precedence only higher than assignment operators?

```julia
julia> pdb_subset[:,:pfam] .== "PF00057" |> sum
ERROR: MethodError: no method matching +(::Char, ::Char)
Closest candidates are:
  +(::Any, ::Any, ::Any, ::Any...) at operators.jl:138
  +(::Char, ::Integer) at char.jl:40
  +(::Integer, ::Char) at char.jl:41
 in mapfoldl_impl(::Base.#identity, ::Base.#+, ::Char, ::String, ::Int64) at ./reduce.jl:46
 in mapfoldl(::Base.#identity, ::Function, ::String) at ./reduce.jl:64
 in |>(::String, ::Base.#sum) at ./operators.jl:350

julia> (pdb_subset[:,:pfam] .== "PF00057") |> sum
13

```

Best regards,
