# Why julia has no clear(variable)?

**URL:** <https://discourse.julialang.org/t/why-julia-has-no-clear-variable/6541>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 18, 2017, 11:15pm UTC](https://discourse.julialang.org/t/why-julia-has-no-clear-variable/6541 "2017-10-18T23:15:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 18, 2017, 11:48pm UTC](https://discourse.julialang.org/t/why-julia-has-no-clear-variable/6541/2 "2017-10-18T23:48:28Z")

</div>

It cannot be a function and it’ll have very different semantics from the matlab function. It is easily implementable in local scope though in most cases what you can use is simply `let`. Ones that cannot be represented by `let` scope of a variable is likely very hard for human to understand too.

---

_[View the full topic](https://discourse.julialang.org/t/why-julia-has-no-clear-variable/6541)._
