I had to do a ton of work to determine what I should actually pass to the method, and it made my life unpleasant.
Working with a library on a duck typed language has this exact same problem. While static typing has its warts, this is one advantage it does have over duck typing.
5
u/[deleted] Dec 07 '08 edited Dec 07 '08
I agree here, and I hate agreeing with Ted.
I recently had to work on a soap proxy class generated by a crappy WSDL. All of the methods had signatures like this:
I had to do a ton of work to determine what I should actually pass to the method, and it made my life unpleasant.
Working with a library on a duck typed language has this exact same problem. While static typing has its warts, this is one advantage it does have over duck typing.