1. 4
  1. 1

    “if you’re a Swift programmer, you’ll be happy to know that you can create your own kinds of tagged pointers. If you’ve ever used an enum with an associated value that’s a class, that’s like a tagged pointer. The Swift runtime stores the enum discriminator in the spare bits of the associated value payload.”

    Not a novel optimization, but nice to know it’s there. (I believe Rust does this too? Nim unfortunately doesn’t.)