# Correct way of: f(::T) where T = zero(T)?

**URL:** <https://discourse.julialang.org/t/correct-way-of-f-t-where-t-zero-t/67426>\
**Category:** General Usage\
**Created:** [August 31, 2021, 2:32pm UTC](https://discourse.julialang.org/t/correct-way-of-f-t-where-t-zero-t/67426 "2021-08-31T14:32:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [August 31, 2021, 5:14pm UTC](https://discourse.julialang.org/t/correct-way-of-f-t-where-t-zero-t/67426/3 "2021-08-31T17:14:31Z")

</div>

Similar question two weeks ago: [Dispatch on type only](https://discourse.julialang.org/t/dispatch-on-type-only/66498)

---

_[View the full topic](https://discourse.julialang.org/t/correct-way-of-f-t-where-t-zero-t/67426)._
