Christian Selig on Nostr: Help me understand Swift existentials. I have a struct that wants a non-nil Codable. ...
Help me understand Swift existentials. I have a struct that wants a non-nil Codable. The compiler (against what I would expect) allows me to pass in a nil value, but if I check against that, it gets angry
How *should* I be doing this?
Code: https://gist.github.com/christianselig/81f326db637efa708542129f08a85669
How *should* I be doing this?
Code: https://gist.github.com/christianselig/81f326db637efa708542129f08a85669