Ancestors

Toot

Written by Dave DeLong on 2024-08-18 at 19:46

Today I am reminded, once again, that #Codable is a terrible #SwiftLang API that should be excised from the language with extreme prejudice.

It's a shame that Swift 6 is already "done”; it would've been the perfect time to do it.

=> More informations about this toot | More toots from davedelong@mastodon.social

Descendants

Written by Mike McNamara on 2024-08-18 at 19:55

@davedelong Hey Dave! πŸ‘‹ Can you expand on this or link to something that would explain the issues? πŸ™ This opinion has made me very curious and I'd love to know more!! πŸ˜„

=> More informations about this toot | More toots from MikeMcNamara@mastodon.social

Written by Brian Lewis on 2024-08-18 at 20:18

@davedelong Why is it bad? I only want stuff serialized.

=> More informations about this toot | More toots from HanBrolo@techhub.social

Written by Pierre on 2024-08-18 at 20:22

@davedelong have you considered this? https://github.com/SwiftyLab/MetaCodable

=> More informations about this toot | More toots from maccatalan@techhub.social

Written by Benjohn on 2024-08-19 at 04:51

@davedelong I’d love to hear the thoughts behind this.

I have some issues with it, particularly that it has to be a conformance, and in creating custom coders (non json, say).

It also feels both not powerful enough and too powerful, has a few irritating edge cases (eg, around nullify), and is just, like, quite heavy feeling internally, and a bit odd.

I like that it mostly just works though. That’s okay.

=> More informations about this toot | More toots from benjohn@todon.nl

Written by Miguel de Icaza α―…πŸ‰ on 2024-08-20 at 13:49

@davedelong I love my Codable.

=> More informations about this toot | More toots from Migueldeicaza@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/112984746856785250
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
281.404423 milliseconds
Gemini-to-HTML Time
1.075516 milliseconds

This content has been proxied by September (ba2dc).