duck typing - Definition. Was ist duck typing
Diclib.com
Wörterbuch ChatGPT
Geben Sie ein Wort oder eine Phrase in einer beliebigen Sprache ein 👆
Sprache:

Übersetzung und Analyse von Wörtern durch künstliche Intelligenz ChatGPT

Auf dieser Seite erhalten Sie eine detaillierte Analyse eines Wortes oder einer Phrase mithilfe der besten heute verfügbaren Technologie der künstlichen Intelligenz:

  • wie das Wort verwendet wird
  • Häufigkeit der Nutzung
  • es wird häufiger in mündlicher oder schriftlicher Rede verwendet
  • Wortübersetzungsoptionen
  • Anwendungsbeispiele (mehrere Phrasen mit Übersetzung)
  • Etymologie

Was (wer) ist duck typing - definition

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.

Wikipedia

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.