Open nineties opened 10 years ago
Following kind of template-instantiation is very common.
f(x, y, z) := { code := 'Foo{x, y, z} code['y -> y, 'z -> z] }
I propose a macro instantiate to write it as below.
instantiate
f(x, y, z) := instantiate(Foo{x, y, z}, y, z)
Following kind of template-instantiation is very common.
I propose a macro
instantiate
to write it as below.