The two "test" methods actually had different arguments (one wanted a
string the other one an int).
The descriptive long names such as sendString are funny as long as they
are short. I have had occasions
where I wanted to differ between a complex object and a string
representation: sendString(), sendQuery(), then there were two totally
different type of Querys
sendGeneratedQuery, sendSuperQueryFromHell,
sendTheRoomServiceObjectThatNoOneEverWanted(). (just saying)
yours
Martin.
On 17/01/2012 00:33, Rui Silva wrote:
From: "Martin Heidegger"<m...@leichtgewicht.at>
(...) Also
the if checks for the type cost performance.
yours
Martin.
I believe that the example stated there were no difference in the code that
sent any of the types. If that was not the case, I'd keep the descriptive
long method names.
Agree on the type safety when you use *, but I would only use that when any
type is absolutely admissible, or I'd keep the descriptive long method
names.
Rui