Datatype-generic programming libraries for Scala

前端 未结 2 1507
梦如初夏
梦如初夏 2021-02-05 18:06

I\'m looking for a Scala library allowing for datatype-generic programming (like Scrap Your Boilerplate, for example). A list of libraries with appropriate links and short descr

2条回答
  •  轮回少年
    2021-02-05 18:50

    Well,

    • Adrian Moors has reimplemented Jeremy Gibbons' Origami programming : The paper. The source.

    • Bruno Oliveira and Jeremy Gibbons have re-implemented Hinze's Generics for the masses, Lämmel & Peyton-Jones' Scrap your Boilerplate with Class, and Origami Programming, and written a detailed comparison about it. Source here.

    • Naturally, the Scala Collections library itself can easily be seen as an instance of generic programming, as Martin Odersky explains, if only because of its reliance on implicits, Scala's flavor of Type Classes.

提交回复
热议问题