gwaerondor / partial_application

Partial Function Application in Erlang
Other
2 stars 0 forks source link

Ability to use curried functions in ?assert and other macros #2

Open gwaerondor opened 4 years ago

gwaerondor commented 4 years ago

Description

Due to the way macros work in Erlang, by cutting and replacing parts of the code before compilation, there are problems using directly applied calls of partially applied functions inside ?assert macros (and probably others). An error occurs where it complains about _ not being bound.

Investigate if this problem is possible to solve at all through parse transforms, and if so, solve it.

?assert(lists:all(is_integer(_), [1, 2, 3]))
gwaerondor commented 4 years ago

This issue requires #1 to be working first.