thanks for the input, but as I wrote on the message, that kind of constructors are exactly what I want to avoid I do not want to have to specify default values for all the fields, nor list them in the constructor: just want to specify the default value of one field, and not even list the others. As I said, this is because I’m not sure what fields will end up being there, as I’m still developing my code and changing many things in many different structs like the model one I wrote. I was hoping for something similar to what I wrote, where in the
new() statement only the
K.x=1 appears, with no (explicit or implicit) reference to any other field. In that sense, what you wrote at the end could have the same effect -though it is not allowed
Any other hints? Or shall I assume that this is a (current?) limitation of the language?