Hacker News new | ask | show | jobs
by extrememacaroni 3033 days ago
`getAddressWhichIsOfTypeString()`?

`str_GetAddress()`?

`GetAddress_STR()`?

3 comments

Why would an address be a string? That's poor use of types. I would expect that getAddress() returns an Address. If it did return it as something non-obvious, than I would expect that to be expressed through the interface and thus the call would be getAddressAsString().
aGetAddress()
getAddressAsString()

getAddress().toString()