golo-lang
golo-lang copied to clipboard
Can't use a fully qualified function name as decorator
Given a decorator function
module my.utils.Decorators
function foo = |f| {
println("# inside the decorator")
return f
}
The following use works:
module Usage
import my.utils.Decorators
@foo
function answer = -> 42
while the following fails with a syntax error:
module Usage
@my.utils.Decorators.foo
function answer = -> 42
They should be equivalent.
This is a syntax issue, not an implementation one.