# Extending methods of pure function

**URL:** <https://discourse.julialang.org/t/extending-methods-of-pure-function/18852>\
**Category:** General Usage\
**Created:** [December 20, 2018, 2:33pm UTC](https://discourse.julialang.org/t/extending-methods-of-pure-function/18852 "2018-12-20T14:33:22Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)\
**Post date:** [December 20, 2018, 10:41pm UTC](https://discourse.julialang.org/t/extending-methods-of-pure-function/18852/5 "2018-12-20T22:41:23Z")

</div>

Maybe unsafe?, considering that `sin(Inf)` throws and this answer in [Can @pure functions throw an error? - #2 by jameson](https://discourse.julialang.org/t/can-pure-functions-throw-an-error/18459/2)

> [@Can @pure functions throw an error?](https://discourse.julialang.org/t/can-pure-functions-throw-an-error/18459/2):
>
> Probably a very bad idea, as `pure` means we can discard or duplicate side-effects, which then also means we can transform any program that might call this function into one that always throws this error at startup

---

_[View the full topic](https://discourse.julialang.org/t/extending-methods-of-pure-function/18852)._
