Anonymous parameter name

Topics: Language Specification
Jun 7, 2014 at 5:20 PM
Will it be supported in the future ?
In case a lambda or a function doesn't really need the name , a wildcard '_' can be used:
function f(g : (_ : number, _ : number) => void) : void {}

function someTestFunctionWithTwoArguments(_, _) {}
Coordinator
Jun 9, 2014 at 4:38 PM
Certainly the caller of f would like some hint as to what the callback parameters mean. I don't see this being supported unless there's a much more compelling reason for it, since it would have a lot of impact on syntax.