oschulz / FunctionChains.jl

Function chains in Julia
Other
4 stars 0 forks source link

Add macro fp #10

Open oschulz opened 10 months ago

oschulz commented 10 months ago

Add macro @fp ("function on properties") that inverts the behavior of @pf regarding $, so that

@fp(a + f(b) + $c)

is equivalent to

@pf($a + f($b) + c)

Functions (and expression heads) in @fp will never refer to properties and so don't need to be $-escaped.