Swift's Safety Checks: Why a Crash Can Be Safe
Swift sometimes preserves memory safety by stopping the program. Following a Character initializer into the standard library explains when to use assert, precondition, and fatalError.
Posts connected by the memory-safety tag.
2 posts
Swift sometimes preserves memory safety by stopping the program. Following a Character initializer into the standard library explains when to use assert, precondition, and fatalError.
A Swift admirer's deep dive into why the actor model feels like it stops short of full isolation, why Rust reaches data-race freedom without any actors at all, and why adding strict, safe concurrency to a mature language is a monumental engineering pursuit worth praising.