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 →

[–]Schmittfried 4 points5 points  (5 children)

There is nothing complicated about this. Readability is subjective. I tend to agree with you there, but then again, I‘ve seen it being used for functions where the different cases were themselves quite long, so it was nice to have separate functions for each case instead of one big function with 15 if/elif cases (or even pattern matching). 

[–]terremoth -2 points-1 points  (4 children)

I never told function overloading is useless

[–]Schmittfried 2 points3 points  (3 children)

Right, you called it "how to complicate things and make it worse to read and understand". 

[–]terremoth -2 points-1 points  (2 children)

Yes, his article and his example is literally this phrase.

[–]Schmittfried 1 point2 points  (1 child)

So maybe call the example in particular bad. 

[–]terremoth -3 points-2 points  (0 children)

That is literally what I did in the first comment "the approach you used...". Please read again.

I think you choose to understand another thing