3 ms·
>Turns out Swift does not have null pointers. At all! Mostly true under the hood; optional value types are tagged unions (I didn't know this before reading thi
by smitherfield 9y ago
>Turns out Swift does not have null pointers. At all!
Mostly true under the hood; optional value types are tagged unions (I didn't know this before reading this article and checking for myself), but optional reference types are still, as you'd expect, nullable pointers.[1]
[1] https://godbolt.org/g/QZk6wL https://godbolt.org/g/QZk6wL