3 ms·
The one issue I wish they would address is how there is no clean interop between the new java style number types: Float, Double, Int and the CoreGraphics CGFloa
by michaelvoz 10y ago
The one issue I wish they would address is how there is no clean interop between the new java style number types: Float, Double, Int and the CoreGraphics CGFloat et al. Doing
Double(thing.frame.size.height)
Is not /terrible/ but it sure could be cleaner to just pass it in as is and let the compiler make the assumption. Especially since the backing numerical value stays the same.
- Alphasite_ 10y agoIts mostly because CGFloat can be of different sizes (float or double) depending on architecture, so can be assumed to be neither a double nor a float exclusively.