Hacker News new | past | comments | ask | show | jobs | submit login

The name should represent what the function does, it should indicate its purpose.

The distinction is useful even when it’s structurally identical to another function.

Two identical functions in different contexts or domains often diverge. When they’re not arbitrarily bound by the fact they have the same contents it’s easy to extend one and not the other.

During compilation, they could both end up using the same actual implementation (though I’m not sure if any compiler does this).






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

Search: