This year’s WWDC session named “What’s New in Swift” has got the following sample code:
let quantity = 10
let formatString = NSLocalizedString(
"You have %lld apples",
comment: "Number of apples"
)
label.text = String(format: formatString, quantity)
This is the first time ever when I meet “%lld” as a specifier for an integer value.
So what is a recommended specifier for the “Swift.Int” type? Is it “%d” or “%lld” and why? Thanks in advance!