Open Points
Right now it is not possible to use Complex numbers without units, since the created method dispatches on
Realinstead ofNumber, this was done, becauseUnitful.Quantityis also a subtype ofNumberand therefore the method could be called with a quantity of the wrong dimension. It would be possible to add another check for each variable, but for now the numerical values are restricted toReal.During the creating of the default constructor for a struct, the complete struct definition is evaluated in the scope of the macro to extract the fieldnames. I am not sure about the consequences this might have, so there might be a better way to extract the fieldnames from the
ExprCurrently the
@optionalunitsmacro only works with thefunction f(x) endsyntax, the shorthand formf(x)=is not yet supported!