Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd suggest that means your `getAddress()` name could be improved to convey the necessary information.


`getAddressWhichIsOfTypeString()`?

`str_GetAddress()`?

`GetAddress_STR()`?


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()




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: