Re:Typical: Data interchange with algebraic data types
by Kinrany on Monday May 22, 2023 @09:16AM
(#36031029)
Asymmetric fields are great. Shouldn't they be the default?
[ Parent
| on HN ]
Re:Typical: Data interchange with algebraic data types
by stepchowfun on Monday May 22, 2023 @12:49PM
(#36033772)
Asymmetric fields are in a temporary transition state to/from required. So it would seem a bit odd to me for the transition state to be the default.
However, I think I see your reasoning: you don't want to accidentally introduce a required field without first making it asymmetric, and having asymmetric as the default would effectively prevent that.
So I can see the appeal of both designs!