Hacker News new | ask | show | jobs
by cesarb 814 days ago
> Do you call it prsphi? (prs for parse, ph for phone number and i for international) Or do you call it parse_international_phone_number?

That's a false dichotomy; you could call it for instance parse_int_phonenum, abbreviating "international" and "number" to the still understandable "int" and "num" (and smashing together "phone number" into "phonenum" since it's a single concept in this code base). It's nearly half the length of your suggestion, while still being understandable at a glance.

1 comments

Hah :D I was confused why would you change the signature to parse integers when clearly I said it was parsing strings. Turns out you were not calling it "parse integer" but "parse international". I guess that's a point against that name then?
Try parse_intl_phonenum? One character longer than GP's.