Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflection and built-in Swift support #35

Open
JetForMe opened this issue May 12, 2021 · 0 comments
Open

Reflection and built-in Swift support #35

JetForMe opened this issue May 12, 2021 · 0 comments

Comments

@JetForMe
Copy link

I may be misreading here, but in your section “That Thing on the Swift Blog,” you reference a Swift blog post from 2016. The concluding section (“Reflecting on Reflection”) of that post argues not against third-party frameworks, but against using reflection.

However, there’s a newer Swift blog post (well, I could have sworn I saw an official Swift blog post) that uses Swift’s JSONDecoder, which uses reflection by default. I thought that article argued against third-party libraries, but now I just can't find it (perhaps it was not an Apple or Swift post. Here’s one). I tend to use Marshal, but I’m all for removing dependencies. I'll probably switch to JSONDecoder(), but I was curious about its performance. it’s probably different when using reflection vs. explicit decoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant