duck typing - définition. Qu'est-ce que duck typing
Diclib.com
Dictionnaire ChatGPT
Entrez un mot ou une phrase dans n'importe quelle langue 👆
Langue:

Traduction et analyse de mots par intelligence artificielle ChatGPT

Sur cette page, vous pouvez obtenir une analyse détaillée d'un mot ou d'une phrase, réalisée à l'aide de la meilleure technologie d'intelligence artificielle à ce jour:

  • comment le mot est utilisé
  • fréquence d'utilisation
  • il est utilisé plus souvent dans le discours oral ou écrit
  • options de traduction de mots
  • exemples d'utilisation (plusieurs phrases avec traduction)
  • étymologie

Qu'est-ce (qui) est duck typing - définition

STYLE OF DYNAMIC TYPING IN OBJECT-ORIENTED PROGRAMMING
Duck Typing; DuckTyping; Duck typed; Duck Type; Duck type

duck typing         
<programming> A term coined by Dave Thomas for a kind of dynamic typing typical of some programming languages, such as Smalltalk, Ruby or Visual FoxPro, where a variable's run-time value determines the operations that can be performed on it. The term comes from the "duck test": if it walks like a duck and quacks like a duck, it must be a duck. Duck typing considers the methods to which a value responds and the attributes it posesses rather than its relationship to a type hierarchy. This encourages greater polymorphism because types are enforced as late as possible. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/100511. (2006-09-13)
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 whether an object can be used for a particular purpose. With nominative typing, an object is of a given type if it is declared to be (or if a type's association with the object is inferred through mechanisms such as object inheritance).
Cotton duck         
  • Close-up showing weave
PLAIN WOVEN COTTON FABRIC
Duck (textile); Duck cloth; Duck (fabric); Cotton doek; Cotton-duck
Cotton duck (from , "linen canvas"), also simply duck, sometimes duck cloth or duck canvas, is a heavy, plain woven cotton fabric. Duck canvas is more tightly woven than plain canvas.

Wikipédia

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 whether an object can be used for a particular purpose. With nominative typing, an object is of a given type if it is declared to be (or if a type's association with the object is inferred through mechanisms such as object inheritance). In duck typing, an object is of a given type if it has all methods and properties required by that type. Duck typing can be viewed as a usage-based structural equivalence between a given object and the requirements of a type. See structural typing for a further explanation of structural type equivalence.