Basically I want to define only once the name of my parameters, and never write them down in function's arguments or declare them in function's body, such that I can add, remove, rename, reorder parameters without having to do anything, and still have all my parameters available in my functions body.
I was thinking of something like this: I define a list of variables name n = ["a","b","c"] in my main function and then having a macro @unpack n p that would generate: a = p[1] b = p[2] c = p[2] Such that I can do something like : function F1(n,p) @unpack n p return a*cos(b-c) end Does that make any sense, or I am missing something obvious ?
