HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by bennyg | Hacker News Reader
Parent
Full thread
bennyg
·
You can do this now @(100.5) for NSNumber literals.
View on HN
dennis_vartan
·
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
Reply on news.ycombinator.com