method parameter declaration lists

  • Thread starter Thread starter not_a_commie
  • Start date Start date
N

not_a_commie

how many of you have ever had a function declaration like this:

public abstract void DoSomething(double a, double b, double c, double
d, bool force);

that you wished could be declared like this:

public abstract void DoSomething(double a, b, c, d, bool force);

?

I don't see any reason that the compiler couldn't support that second
syntax.
 
not_a_commie said:
how many of you have ever had a function declaration like this:

public abstract void DoSomething(double a, double b, double c, double
d, bool force);

that you wished could be declared like this:

public abstract void DoSomething(double a, b, c, d, bool force);

?

I don't see any reason that the compiler couldn't support that second
syntax.

Neither can I but I can't think of a really compelling reason why it should.
Even if it could I would still explicitly type each parameter. Ultimately
there has to be extra-ordinary high demand for such syntatic sugar before
any such feature would be considered and this is the first I've seen of such
a request. Thats not to say that there isn't a demand for it, but this is
the sort of feature that would also see oppostion.
 
Back
Top