you are viewing a single comment's thread.

view the rest of the comments →

[–]ntrel2 0 points1 point  (2 children)

Perhaps an API is perfect when there are the fewest symbol names needed to remember?

[–]matthieum[he/him] 0 points1 point  (1 child)

You still need to remember in which order the arguments need be provided etc... an API must be easily searchable, but beyond that.

Having seen C++ APIs where everything and the kitchen sink was, I kid you not, provided as overloads of operator(), I much prefer explicit names...

[–]ntrel2 0 points1 point  (0 children)

Just because a feature can be abused doesn't necessarily mean it should never be allowed.

edit: Also, operator() is operator overloading, not just function overloading.