what is "duck typing"???

Duck typing in computer programming is an application of the duck test—"If it walks like a duck and it quacks like a duck, then it must be a duck"—to determine if an object can be used for a particular purpose. With normal typing, suitability is determined by an object's type. In duck typing, an object's suitability is determined by the presence of certain methods and properties, rather than the type of the object itself.

Updating....

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,163评论 0 10
  • 原定去泰国的,但是同行的小姑娘护照办得晚,就改去九寨沟了,刚好我可以去偷熊猫了!哈哈哈! 啊?不是繁殖基地啊……熊...
    李熬花阅读 2,498评论 0 0
  • 1 大笨是一个有理想的人,这是大笨引以为傲的资本。大笨认为,当今中国有太多籍籍无名的鼠辈,这些鼠辈最悲惨的共性就是...
    盛世阿明阅读 4,140评论 0 5