vsh: cannot use constants from auto-imported modules
V version: V 0.1.29 01b28ef OS: Manjaro
What did you do?
// script.vsh
println(path_separator)
What did you expect to see?
Output of /
What did you see instead?
[...] error: undefined ident: `path_separator`
[...]
You can use it, but have to explicitely say it is from the os module as : os.path_separator.
Do you wish to be able to use the variable without the os. part ?
Yes, I do not need to type os. before functions, so I don't expect to need it for constants too.
@spytheman how should this behave? 🤔
The auto-import of os seems nice, but is it really? Audience for .vsh scripts probertly also code normal v and are used to import, so why not just do that? I suggest do keep the auto os import as is for compatibility, but alter vsh description to discourage the practice of use autoimport.