Swift Concurrency has been a bumpy business

But yesterday, there I was, minding my own thread and wrote some code backed by my 30 years of experience and Swift was having none of it

Took me a moment to realize that the compiler was right, fixed the flaw and moved on with life

Nice progression: from wasting weeks tracking an obscure race condition that rarely ever happens, to fighting the compiler for half an hour, to accepting my role as a meat-based LLM that writes thread safe code

0

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