1.0 annoyances and Matlab comparison

For protection I would use a module:

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);