poohbar
05/17/2021, 3:00 PMString.capitalize()
function?jw
05/17/2021, 3:03 PMenleur
05/17/2021, 3:05 PMreplaceFirstChar(Char::titlecase)
workspoohbar
05/17/2021, 3:34 PMShawn
05/17/2021, 5:09 PMcapitalize
could mean titlecase-ing an entire string or just the start of a string, or maybe it could be interpreted as a String.toUpper()
kind of function. Searching stackoverflow for “capitalize” gets back a few results with people looking for different behaviors but calling it the same thingchristophsturm
05/17/2021, 5:22 PM"blah blah".titleCase()
would be “Blah Blah”. so the new method definately is more consistent.elect
05/17/2021, 7:11 PMcapitalize
means clearly only the first letter, I honestly don't see any potential interpreting issuespoohbar
05/17/2021, 8:32 PMcapitalize could mean titlecase-ing an entire stringno it couldn’t, it means converting the first letter to uppercase; the original name was perfect
elizarov
05/17/2021, 8:38 PMelect
05/18/2021, 12:59 PMtodd.ginsberg
05/18/2021, 1:01 PMelizarov
05/18/2021, 7:09 PM