Would it be possible to build a version of Codable with macros and without Mirror or runtime type metadata? Embedded Swift doesn't come with Codable, Encodable, Decodable, Mirror, or runtime metadata, but I'd still like object mapping...
=> More informations about this toot | More toots from markmalstrom@universeodon.com
@markmalstrom https://github.com/SwiftyLab/MetaCodable
=> More informations about this toot | More toots from mattiem@mastodon.social
@mattiem does this reimplement Codable's functionality? My understanding was that it just enhances the existing protocols’ functionality
=> More informations about this toot | More toots from markmalstrom@universeodon.com
@markmalstrom I actually don’t know! I just knew this existed and thought maybe it would be interesting. Sorry I should have added some context to that.
=> More informations about this toot | More toots from mattiem@mastodon.social
@mattiem oh! Gotchya. Yes, it is interesting, but I think most of what it's doing is generating custom inits for Codable to then do magic with and since that magic doesn't exist in Embedded Swift, I’m trying to figure out if I can recreate all that magic myself without using Mirror or runtime metadata.
=> More informations about this toot | More toots from markmalstrom@universeodon.com
@markmalstrom Ahh ok…
I’ve done a little of this kind of stuff for my persistence library. It doesn’t have to do any examination of the actual property types so it’s pretty superficial. But could be a good starting point. I think this is possible!
=> More informations about this toot | More toots from mattiem@mastodon.social
text/gemini
This content has been proxied by September (3851b).