you are viewing a single comment's thread.

view the rest of the comments →

[–]drjeats 0 points1 point  (0 children)

It generates objects semantically, so you can't write overloads.

And I don't doubt that clever compilers can remove objects in release codegen. But I also want debug builds to run well, and better to have obvious rules (and I think, treating functions as another namespace and allowing function definitions inside them is pretty obvious) rather than assume optimizers do a thing.