Hi, I'm trying to come up with a reasonable syntax for iteratively building function calls. Here is the best I've got so far.
using Lazy using DataFrames type Call! e::Expr end function Call!(c::Call, e::Expr) c.e.args = [c.e.args, e.args[2:end]] c end @_ begin Call(:( DataFrame() )) Call!(_, :(e( a = 1, b = 2 ))) Call!(_, :(e( c = 2, e = 3))) Call!(_, :(e( f = 2, g = 3))) eval(_.e) end I'm looking for suggestions for cleaner syntax.
