Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Can't use a fully qualified function name as decorator #499

Open
yloiseau opened this issue Sep 14, 2017 · 0 comments
Open

Can't use a fully qualified function name as decorator #499

yloiseau opened this issue Sep 14, 2017 · 0 comments
Labels

Comments

@yloiseau
Copy link
Contributor

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 yloiseau added the bug label Sep 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant