Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Haven't got to the part where I need to handle phone numbers in my app but this changed my thinking a little. Just realised a string could work just as well ... anyone else have thoughts on this?
-
Root797347yYou're right, it's probably stored as a string, and therefore internally null-terminated, so:
"Sure!
It's: +0479365926595 null 66d7ff42a8ceb72200[...]"
Expensive long-distance number if he calls it, plus possibly some random fireworks at some point in his future, depending on his fault tolerance. Let's hope he's not a lightweight. 🙂 -
devios157057yRobobert, I had no idea you were such a player! How many numbers do you think he has @matsaki95?
Related Rants
Besides the fact that there would be an error handler, wouldn't it store a phone number as an object other than a computable number, like a string, cuz phone number is like a handler, a reference, and not something you'd ever perform arithmetic on?
undefined
bot
number