Someone decided to call you after you had 2,147,483,647 missed calls lol
Why use a signed integer for something strictly non-negative (ignoring bugs ofc)?
Because it is all written in a language that only has signed numbers. That's virtually all modern languages.
Swift (used for Apple devices) has them (see the Integers section):
https://docs.swift.org/swift-book/documentation/the-swift-programming-language/thebasics/
So it was actually written in a language that has them...
C# has them (goes without saying)
Java doesn't seem to.
This is still clearly far from "virtually all."
A place for Apple news, rumors, and discussions.
Someone decided to call you after you had 2,147,483,647 missed calls lol
Why use a signed integer for something strictly non-negative (ignoring bugs ofc)?
Because it is all written in a language that only has signed numbers. That's virtually all modern languages.
Swift (used for Apple devices) has them (see the Integers section):
https://docs.swift.org/swift-book/documentation/the-swift-programming-language/thebasics/
So it was actually written in a language that has them...
C# has them (goes without saying)
Java doesn't seem to.
This is still clearly far from "virtually all."