# Does declaring a variable to be constant do anything at all?

**URL:** https://discourse.julialang.org/t/does-declaring-a-variable-to-be-constant-do-anything-at-all/6029
**Category:** General Usage
**Tags:** question, constants
**Created:** [September 21, 2017, 5:58pm UTC](https://discourse.julialang.org/t/does-declaring-a-variable-to-be-constant-do-anything-at-all/6029 "2017-09-21T17:58:01Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)
#### Post date: [September 21, 2017, 10:48pm UTC](https://discourse.julialang.org/t/does-declaring-a-variable-to-be-constant-do-anything-at-all/6029/11 "2017-09-21T22:48:53Z")

</div>

No the two concepts are orthogonal. You shouldn’t describe mutating an object as binding. I’m not sure what background you have (i.e. what languages are you familiar with) but I’ll try and point out that variables are orthorgonal to object in julia, just like most scripting languages. This is unlike C++ for example, where variables basically equal objects. Immutable means, well, you can’t mutate an object. Constant global means you can’t change the object it’s pointing to.

---

_[View the full topic](https://discourse.julialang.org/t/does-declaring-a-variable-to-be-constant-do-anything-at-all/6029)._
