The Swift Apple doesn't want you to know
Forbidden functions, deranged keywords, and plain weird syntax
I’ve been writing Swift daily for nearly 10 years. I’m impostor syndrome-proof. I’ve seen it all.
But every so often… I don’t know.
Maybe I make a typo in Xcode that unearths forgotten creatures from the Mariana Trench of autocomplete. Perhaps I’m buying pet chimps on the darkweb and accidentally stumble upon a blog post containing arcane syntax.
Today, we’re going to unearth some of the Swift which Apple keeps in the cupboard under the stairs. We’ll ascertain whether these keywords and functions have any real-world use cases, so we can take them out for a bit of sun.
unowned(unsafe)
withoutActuallyEscaping
dlopen()
malloc, free, and withUnsafeTemporaryAllocation
_modify
autoreleasepool
Subscribe to Jacob’s Tech Tavern for free to get ludicrously in-depth articles on iOS, Swift, tech, & indie projects in your inbox every week.
Paid members get several benefits:
Access this article, plus all my advanced Elite Hacks 🌟
Read my free articles a month before anyone else 🚀
Grow your career with my Swift Concurrency course 🧵
Keep reading with a 7-day free trial
Subscribe to Jacob’s Tech Tavern to keep reading this post and get 7 days of free access to the full post archives.