luke-gru / riml

Riml is a subset of VimL with some nice added features. It compiles to plain VimL.
MIT License
224 stars 6 forks source link

Variables inside function should compile to local to function scope #38

Open still-dreaming-1 opened 8 years ago

still-dreaming-1 commented 8 years ago

What do you think about having variables inside a function compile to local to function scope? Lookup :h local-variable in Vim. The main reason I would like this is, as the help explains:

without prepending "l:" you may run into reserved variable names.

This is exactly the type of thing riml would be great for. I would love to not have to write l:my_var inside all my functions and still know it won't refer to other variables outside the function scope.

What are your thoughts on this?