3 ms·
Well, function specifications in the link table would have to become more verbose, and the linker would have additional decisions to make. You could also wind u
by jschwartzi 12y ago
Well, function specifications in the link table would have to become more verbose, and the linker would have additional decisions to make. You could also wind up deferring a lot of problems that could be caught by compile-time checking until link-time, which might also be run-time.
The problem that they're trying to solve is that people often use 5 arguments when a single struct would do.
- kentonv 12y agoNo, this proposal does not affect the linker at all. Argument names would be resolved to positional arguments during compilation.
- jschwartzi 12y agoYes, actually. You're right: > In this proposal, the association of parameter names with a function for the purpose of making calls with named arguments to that function happens locally in each translation unit, and new declarations within a translation unit can change a function's ability to be called with named arguments at call sites below the new declaration (by using different names than a previous declaration).