# 1.0 annoyances and Matlab comparison

**URL:** <https://discourse.julialang.org/t/1-0-annoyances-and-matlab-comparison/9433>\
**Category:** Internals & Design\
**Created:** [March 1, 2018, 9:49pm UTC](https://discourse.julialang.org/t/1-0-annoyances-and-matlab-comparison/9433 "2018-03-01T21:49:56Z")\
**Posts on this page:** 1\
**Showing post:** 140

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [March 8, 2018, 1:24am UTC](https://discourse.julialang.org/t/1-0-annoyances-and-matlab-comparison/9433/140 "2018-03-08T01:24:52Z")

</div>

For protection I would use a module:

```julia
module m
function test_1(v)
  local a;
  println(a);
end;

function test_2(v)
  local a;
  println(b);
end;
end
using .m
  
# Neither of these will be successful: all will error with "undefined variable"
# a = 4;
# m.test_1(6);

# m.test_2(6);
# b = 3;
# m.test_2(6);

```

---

_[View the full topic](https://discourse.julialang.org/t/1-0-annoyances-and-matlab-comparison/9433)._
