I was somewhat surprised to find that name args do not have an implicit let
and I don't seem to be able to embed the let syntax
bar() = "Hello"
wow( ; bar = bar() ) = string( bar, " world")
wow()
: ERROR: bar not defined
Within a function I can do the following
function foo()
let bar = bar()
return string( bar, " world" )
end
end
: foo (generic function with 1 method)
In the args I can not do so ( perhaps there is a working syntax ? )
wow( ; let bar = bar() end) = string( bar, " world")
: ERROR: syntax: invalid keyword argument syntax "(let (block) (= bar (call
bar)))" (expected assignment)
Thanks