[erlang-questions] Re: implementing annotation in erlang

paweł kamiński kamiseq@REDACTED
Wed Sep 9 23:51:39 CEST 2009

finally I went through parse_transform but constructing even simple format
from scratch is a nightmare.

to prepare something like

I need to build

is there a way to construct code blocks in more elegant way, something like
create_fun(LineNo, Name, Arity, Body, ..)-> would produce function block
create_tuple(LineNo, Tuple)
and so on

and still Im thinking that extracting information from code in runtime is
far more productive (elegant, sufficient, just simpler) then transforming
code to something different. generally all I need is just to obtain
information that this function is annoted with metadata and store that or
make additional tasks. with parse transform I need to build and add new
function to parsed module that other can call and get those information or
create whole new file with well known name that other modules could refer

anyway thanks for help

Paweł Kamiński


More information about the erlang-questions mailing list