# "\`const static\`" function parameters

**URL:** <https://discourse.julialang.org/t/const-static-function-parameters/1803>\
**Category:** General Usage\
**Created:** [January 31, 2017, 4:54pm UTC](https://discourse.julialang.org/t/const-static-function-parameters/1803 "2017-01-31T16:54:10Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![MikeInnes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikeinnes/32/3656_2.png) [@MikeInnes](https://discourse.julialang.org/u/MikeInnes)\
**Post date:** [February 13, 2017, 5:42pm UTC](https://discourse.julialang.org/t/const-static-function-parameters/1803/17 "2017-02-13T17:42:14Z")

</div>

I suspect it’s not widely useful enough to have in base; but the good news is that if it doesn’t require language support, there’s no real downside to having it in a package.

The LLVM code isn’t going to be as clean as the “really static” version because you have to do pointer lookups and branches to initially set the variable. Such is the cost of being dynamic, I’m afraid.

---

_[View the full topic](https://discourse.julialang.org/t/const-static-function-parameters/1803)._
