by Someone · 1y ago · 0 comments
a + b
suffer more from this than plus(a,b)
? In both cases, libraries will only clash if both define a function with the same name taking an A and a B. The only difference is that it is called + in the former case, and plus in the latter.The following is pretty standard:
foo::plus(a, b) // or foo.plus(a, b)
bar::plus(a, b) // or bar.plus(a, b)
Whereas this is more awkward: a foo::+ b // or a foo.+ b
a bar::+ b // or a bar.+ b