drogetype
Drogetype is a term used in theoretical discussions of programming language type systems to describe a flexible data-type concept that blends aspects of records and objects. A drogetype defines a template for values that carry both data fields and a set of associated operations, while allowing variation in structure across instances.
Core characteristics include nominal identity for each instance, structural polymorphism in the fields, and support for
Drogetypes sit between traditional records and object-oriented classes, sharing the ability to bundle data with behavior
An example in a hypothetical language might define a drogetype called Widget with fields id and version
History and usage: Drogetypes have appeared mainly in theoretical writings and language-design discussions to illustrate trade-offs