Generic programming

ASAMI, Tomoharu

Term

generic programming

Aliases

generics

Definition

Generic programming is a style of programming that enables the creation of reusable and type-safe abstractions, independent of concrete types. It leverages mechanisms like type parameters, type classes, and implicits to define polymorphic behavior.

SimpleModeling

In SimpleModeling, generic programming is used as the foundation for enhancing abstraction and reusability in Scala code generated from literate models. Mechanisms like type classes, type parameters, and implicits help unify structural models and compress the search space for AI-assisted development.