Why julia has no clear(variable)?

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.

1 Like