Browsing by Author "Sunil, KOTHARI"
Now showing 1 - 1 of 1
Results Per Page
Sort Options
- ItemC++ templates/traits versus Haskell type classes(2005-02-16T09:41:40Z) Sunil, KOTHARI; Martin, SULZMANNThis article presents an in-depth study of the close connection between Haskell type classes and C++ template/traits mechanism - two different facilties for implementing generic programming concepts. Haskell type classes and various extensions can be closely mimicked by C++ templates/traits and related mechanisms. We highlight the subtleties related to type-based computations and the limitations induced by language design on the program behaviour by a number of examples.