Wish: Variable Not Used Warning
Manfred_Nowak
svv1999 at hotmail.com
Wed Jul 9 04:26:54 PDT 2008
Koroskin Denis wrote:
> void connect(unused int timeout)
[...]
> connection.connect(0); // I don't care, since it is immediate
> anyway
[...]
> and then refactor your code
In which way is this type of coding better than preparing for
overloading `connect':
void connect(){
// ...
}
void connect( int timeout){
// ...
this.connect();
}
and then calling
> connection.connect(); // immediate connection
In addition: why is it good to be forced to refactor?
-manfred
--
Maybe some knowledge of some types of disagreeing and their relation
can turn out to be useful:
http://blog.createdebate.com/2008/04/07/writing-strong-arguments/
More information about the Digitalmars-d
mailing list