alcides / aeon

Aeon programming language
https://alcides.github.io/aeon/
8 stars 3 forks source link

Metadata in decorators #30

Closed alcides closed 5 months ago

alcides commented 6 months ago

The idea of this feature is two-fold:

Firstly, we want to support multiple decorators (e.g., multiple minimize targets that just append to a list of objectives).

@dec1(...)
@dec2(...)
def f : Int := 3;

Secondly, we want to save information together with the AST ("eg: what is the list of fitness functions, what functions to ignore, etc).

How to implement: