News for hackers. Stuff that matters.
Re:My misalignment with Apple's love affair with Swift by mercutio2 on Tuesday June 12, 2018 @08:36PM (#17299315)
NSNumbers are generally tagged pointers, unless you’ve got a really large number.
Re:My misalignment with Apple's love affair with Swift by archagon on Tuesday June 12, 2018 @08:50PM (#17299370)
This didn't help me in my app, unfortunately, because I needed to encode CGPoints as NSValues. I suppose I could have resorted to ordinary, interleaved CGFloats, but it was way easier and more productive to just use C++ vectors. I knew exactly what I was getting with those, and I didn't have to do the boxing/unboxing dance.