by Floegipoky · 3y ago · 0 comments
Such validation logic can be enforced in the record's compact constructor.
And I don't like having to provide one constructor for every optional (default) value, when its omitted. There's just not as nice of a style. The "telescoping" constructor pattern is just really hard to use, read and maintain.