We present a generic programming framework for OCAML which makes it possible to implement extensible transformations for a large scale of type definitions. Our framework makes use of objectoriented features of OCAML, utilising late binding to override the default behaviour of generated transformations. The support for polymorphic variant types complements the ability to describe composable data types with the ability to implement composable transformations.
翻译:我们为非洲海洋大气和海洋金属委员会提供了一个通用的方案编制框架,使实施大规模类型定义的可扩展变换成为可能,我们的框架利用了非洲海洋和海洋金属委员会面向目标的特征,利用延迟约束来取代所产生变换的默认行为,对多形态变异类型的支持补充了描述可折式数据类型的能力,并有能力实施可折式变换。