Post #1897044
2025-04-21 04:15 UTC
Imagine a world where reading Swift JSON decoding errors didn’t require a Ph.D.
I’ve seen newer developers encounter the description of a DecodingError and just assume it could not possibly contain useful information.
Let’s change that. https://github.com/swiftlang/swift/pull/80941
Replies (3)
-
@ZevEisenberg@mastodon.social 2025-05-10 06:01
Now with a draft Swift Evolution proposal: https://github.com/swiftlang/swift-evolution/pull/2843
-
@rhysmorgan@mastodon.social 2025-04-21 10:41
@ZevEisenberg@mastodon.social @mattiem@mastodon.social This is awesome! I wish more Swift error messaging was so descriptive. One of the things I’ve loved when I’ve dabbled with Rust is how comprehensive some of the error messages are, and there’s nothing stopping Swift having the same.
-
@joshdholtz@mastodon.social 2025-04-22 11:34
@ZevEisenberg@mastodon.social YESSSSSSSSSS