kotlin-style-guide icon indicating copy to clipboard operation
kotlin-style-guide copied to clipboard

Add a note on overloads behavior

Open abreslav opened this issue 8 years ago • 1 comments
trafficstars

In the process of language evolution, subtle changes may happen to overload resolution algorithms, so it's advisable to design one's overloads so that they all "do the same thing", and the change in behavior is not so huge if a different overload is chosen by the compiler.

abreslav avatar Jul 13 '17 08:07 abreslav

This is quite a vague recommendation. Can you provide an example of a set of overloads that doesn't follow this recommendation, and how it can be changed to start following it?

yole avatar Dec 21 '17 18:12 yole