I’d love to use Julia as a replacement for my Unix shell at least some of the time so that I can become more familiar and comfortable with the language. One function I’m having trouble defining is:
function vjus(path)
juliaDir = "/path/to/main/julia-repo/$path"
vim(juliaDir)
end
(where vim is a function I’ve previously defined). Now the reason I’m having difficulty with this is that I want it so that if path is unspecified and left blank, vjus will just open Vim to /path/to/main/julia-repo/. I know how to set a default for a positional argument in a function, namely using function vjus(path=default), but if I leave default as empty (which is what I want to be), I get an error (namely ERROR: LoadError: syntax: unexpected ")" for vjus(path=) and ERROR: LoadError: syntax: invalid empty character literal for vjus(path=''). Is there a way around this issue?