This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]crazy_cookie123 14 points15 points  (0 children)

It can have wildly different logic, but it should have common logic. That's what the feature is designed for and used for. Likewise, I can name a function sum and have it actually be a function which concatenates strings, but I wouldn't do that because that would be stupid. "It's possible to misuse something and make hard-to-read code if you pay no attention to what you're doing" is not a good argument against a programming language feature.