User Tools

Site Tools


Sidebar

https://DevOpsCloud.io – Cloud Monk Losang Jinpa - Cloud Native Microservices - Azure-AWS-GCP-Kubernetes-GitOps-Python-DevOps-CloudOps-Linux-Docker-C++20

Losang Jinpa, PhD, MCSE/MCT - The Cloud Monk

Do not call me, I am Retired and living in the wilds of the Pacific Mountain Northwest

Losang specializes in:

Contact: I am not available.

generics

Table of Contents

Generics

Return to Programming paradigms, Object-oriented programming (OOP), Reactive programming, Imperative programming, Declarative programming, Procedural programming, Functional programming, Generic programming (Generics), Aspect-oriented programming, Major programming topics, Programming topics, Programming languages, Software engineering topics, Software architecture, Software architecture topics, Awesome lists

Snippet from Wikipedia: Generic programming

Generic programming is a style of computer programming in which algorithms are written in terms of types to-be-specified-later that are then instantiated when needed for specific types provided as parameters. This approach, pioneered by the ML programming language in 1973, permits writing common functions or types that differ only in the set of types on which they operate when used, thus reducing duplication. Such software entities are known as generics in Ada, C#, Delphi, Eiffel, F#, Java, Nim, Python, Go, Rust, Swift, TypeScript and Visual Basic .NET. They are known as parametric polymorphism in ML, Scala, Julia, and Haskell (the Haskell community also uses the term "generic" for a related but somewhat different concept); templates in C++ and D; and parameterized types in the influential 1994 book Design Patterns.

The term "generic programming" was originally coined by David Musser and Alexander Stepanov in a more specific sense than the above, to describe a programming paradigm whereby fundamental requirements on types are abstracted from across concrete examples of algorithms and data structures and formalized as concepts, with generic functions implemented in terms of these concepts, typically using language genericity mechanisms as described above.

External Sites


Cloud Monk is Retired (for now). Buddha with you. © 2022 Losang Jinpa or Fair Use. Disclaimers. REPLACE with: navbar_footer


generics.txt · Last modified: 2022/01/18 16:52 by Losang Jinpa PhD MCSE/MCT Python-DevOps