Maybe you could provide more context for the problem. Are the
fields computed, or do you have them in some other data structure
(eg a Dict or a vector)? See
https://julia.readthedocs.org/en/latest/manual/constructors/
Best,
Tamas
On Mon, Jul 13 2015, 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?