Maybe https://github.com/mauro3/Parameters.jl could help, it provides a way to set defaults and keyword constructors.
On Mon, 2015-07-13 at 13:08, Ranjan Anantharaman <[email protected]> wrote: > > > Suppose we had a type with 100 members > > To initialise the data members, we'd have to write a constructor > s = something(1,2, ....) > > This could turn out to be an extremely long line. > Is there a better way of doing this?
