Jacob Carlborg <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #4 from Jacob Carlborg <> 2012-01-02 06:35:27 PST ---
(In reply to comment #3)
> (I don't actually know why we have unnamed parameters at all; most modern
> languages simply don't allow this. In addition, unused parameters in
> delegate/function literals/lambdas sort of seems to go against the entire idea
> with lambda functions, in the general case.)

Useful situations for unnamed parameters:

* Declaring a delegate type

void delegate (int) dg;

* Declaring a function/method without implementation

void foo (int);

* Overriding/implementing a method where a parameter isn't needed

class Foo {
    abstract void foo (int a);

class Bar : Foo {
    void foo (int) {}

These are the situations I see it as might being useful but I would say that
adding names to the parameters adds documentation and that's always a good

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to