D supports type inference in my places, like variable declarations: auto a = 3; But the same thing doesn't work with parameters, neither template or regular parameters: void foo(auto a = 3); void foo(auto a = 3)(); Implementing this feature would allow for some function signatures to be shorter and make the language more consistent. Currently it seems like an arbitrary limitation.
a function signature is just that. The signature of the function, allowing auto in the signature makes it uninformative
It's already allowed for the return type.
(In reply to Jacob Carlborg from comment #2) > It's already allowed for the return type. Which already wrecks havoc when trying to generate headers.
There was a pull for this before: https://github.com/dlang/dmd/pull/2270 https://issues.dlang.org/show_bug.cgi?id=10491 Now this is preapproved, it could be updated.
Related: https://issues.dlang.org/show_bug.cgi?id=17036 https://issues.dlang.org/show_bug.cgi?id=16467
*** This issue has been marked as a duplicate of issue 10491 ***