Re: duck typing at will

2008-12-30 Thread Bruno Desthuilliers
Jose Mora a écrit : Duck typing is called that way because "If it looks like a duck and quacks like a duck, it must be a duck." or at least something close enough... I think it would be good to have also "If the programmer wants to deal with it like a duck, it must be a duck" DWIM[1] just d

Re: duck typing at will

2008-12-30 Thread Ned Deily
In article <[email protected]>, "Jose Mora" wrote: >[...] > I mean, some tasks are rather boring in python when compared with php, > for example, let's imagine we have a dictionary that contains > dictionaries that contain the times that a key appears. W

Re: duck typing at will

2008-12-30 Thread MRAB
Jose Mora wrote: Duck typing is called that way because "If it looks like a duck and quacks like a duck, it must be a duck." I think it would be good to have also "If the programmer wants to deal with it like a duck, it must be a duck" I mean, some tasks are rather boring in python when compared

duck typing at will

2008-12-30 Thread Jose Mora
Duck typing is called that way because "If it looks like a duck and quacks like a duck, it must be a duck." I think it would be good to have also "If the programmer wants to deal with it like a duck, it must be a duck" I mean, some tasks are rather boring in python when compared with php, for exam