# Anybody else find the new where syntax less than satisfactory?

**URL:** <https://discourse.julialang.org/t/anybody-else-find-the-new-where-syntax-less-than-satisfactory/4897>\
**Category:** General Usage\
**Created:** [July 17, 2017, 9:39am UTC](https://discourse.julialang.org/t/anybody-else-find-the-new-where-syntax-less-than-satisfactory/4897 "2017-07-17T09:39:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![swissr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/swissr/32/208_2.png) [@swissr](https://discourse.julialang.org/u/swissr)\
**Post date:** [July 17, 2017, 1:46pm UTC](https://discourse.julialang.org/t/anybody-else-find-the-new-where-syntax-less-than-satisfactory/4897/5 "2017-07-17T13:46:58Z")

</div>

While I prefer the new syntax, I must admit, I still have a mental hiccup when reading the “where” term. I always translate it to something like “for\_a\_certain”, “with\_type”, or “for\_all”.

Where I have questions though are the curly brackets. It seems confusing, sometimes there is a `where {T}` but sometimes a pure `where T`.

Tendencially in one-liner functions `{T}` is being used and in full (multiline) functions `T`. But `ack "where {T" base/` and `ack "where T" base/` show that this is not (yet?) the case everywhere, e.g.

```julia
HistoryPrompt(hp::T) where T<:HistoryProvider = HistoryPrompt{T}(hp)

function TwicePrecision{T}(nd::Tuple{I,I}) where {T,I}
    n, d = nd
    TwicePrecision{T}(n, zero(T)) / d
end

```

Maybe I made this up and there isn’t such a convention, not sure. It was discussed in the above-mentioned [20308](https://github.com/JuliaLang/julia/pull/20308) issue. Personally I’d have preferred a pure `T` without brackets (and get used to the slightly/much confusing `where T = xy` consequence).

---

_[View the full topic](https://discourse.julialang.org/t/anybody-else-find-the-new-where-syntax-less-than-satisfactory/4897)._
