You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When first using this library, I have not made the realization that codecs will likely have a similar issue like JSON decoders in that order of fields is important and can't be checked/secured against in compile time.
I've introduced a bug by using codecs wrong - adding a new parameter to the function passed Codec.custom in the 1st position, while adding another |> Codec.variant0 line in a non-1st position.
Might be useful to have a warning / note about order still being important in Codec.custom and Codec.object and what bugs can happen when you mix those up.
And perhaps about Codec.enum existing. There will be people like me whose first encounter with elm-codec is via elm-review-derive which doesn't do Codec.enum
The text was updated successfully, but these errors were encountered:
When first using this library, I have not made the realization that codecs will likely have a similar issue like JSON decoders in that order of fields is important and can't be checked/secured against in compile time.
I've introduced a bug by using codecs wrong - adding a new parameter to the function passed
Codec.custom
in the 1st position, while adding another|> Codec.variant0
line in a non-1st position.Might be useful to have a warning / note about order still being important in
Codec.custom
andCodec.object
and what bugs can happen when you mix those up.And perhaps about
Codec.enum
existing. There will be people like me whose first encounter withelm-codec
is viaelm-review-derive
which doesn't doCodec.enum
The text was updated successfully, but these errors were encountered: