Writing robust macros is already hard. But writing macros that may expand into either MainActor-by-default or nonisolated-by-default targets makes it *that* much harder. I had to set up multiple playground targets with different concurrency settings to properly exercise my macros and catch isolation crossing issues I didn't initially expect.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/alexozun/statuses/115724791228234549 on your instance and quote it. (Note that quoting is not supported in Mastodon.)