@davedelong, they mention @rust #Serde framework, so they are not too far from your idea.
“The Serde ecosystem consists of data structures that know how to serialize and deserialize themselves along with data formats that know how to serialize and deserialize other things.”
@phausler It's adequate for a lot of use cases, but being built around the wrong abstraction has meant years of proposals to work around that with CodingKeyRepresentable, CodableWithConfiguration, etc. Couple that with how quickly you fall off a cliff if you stray from the Happy Path and it quickly loses its lustre.
And yes, I miss NSKeyedArchiver. We should bring it back, and I say as much to Kevin in the thread.
@phausler @davedelong I think Codable is great, it’s made serialisation trivial.
I’m aware of some of the shortcomings and I wish we could discuss them without harsh judgement of the status quo 😞
@helge @finestructure @phausler @davedelong
Codable did not try to change it! What a missed opportunity…
NSKeyedArchive and friends was a honest, transparent stuff. I hate the Coding black-boxiness! And besides all Dave’s criticism, it is outrageously slow! Dum implementation for dummies.