Re:Show HN: NSString + Ruby
by bennyg on Thursday October 10, 2013 @11:36PM
(#6531300)
You can do this now @(100.5) for NSNumber literals.
[ Parent
| on HN ]
Re:Show HN: NSString + Ruby
by dennis_vartan on Friday October 11, 2013 @12:42AM
(#6531436)
And even shorter, just @100.5 if what you have is a literal. The parentheses are needed if you're boxing a value, e.g.: @(price + 100.5)
In detail: http://clang.llvm.org/docs/ObjectiveCLiterals.html