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
In article
<6e1bfdea0812301042x70ab57capf99ce73d364d5...@mail.gmail.com>,
"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
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