Y
Hacker News
new
|
ask
|
show
|
jobs
by
bennyg
4640 days ago
You can do this now @(100.5) for NSNumber literals.
1 comments
dennis_vartan
4640 days ago
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
link
In detail: http://clang.llvm.org/docs/ObjectiveCLiterals.html