golo-lang icon indicating copy to clipboard operation
golo-lang copied to clipboard

Can't use a fully qualified function name as decorator

Open yloiseau opened this issue 8 years ago • 0 comments

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.

yloiseau avatar Sep 14 '17 11:09 yloiseau