Scrap++: scrap your boilerplate in C++

  • Authors:
  • Gustav Munkby;Andreas Priesnitz;Sibylle Schupp;Marcin Zalewski

  • Affiliations:
  • Chalmers University of Technology;Chalmers University of Technology;Chalmers University of Technology;Chalmers University of Technology

  • Venue:
  • Proceedings of the 2006 ACM SIGPLAN workshop on Generic programming
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

"Scrap Your Boilerplate" (SYB) is a well studied and widely used design pattern for generic traversal in the Haskell language, but almost unknown to generic programmers in C++. This paper shows that SYB can be implemented in C++. It identifies the features and idioms of C++ that correspond to the Haskell constructs that implement SYB, or can be used to emulate them, and provides a prototype C++ implementation.