| |
| | Spring School on Datatype-Generic Programming 2006 | Lambda the Ultimate |
 | | Algebraic datatypes are typeful in a way that s-expressions aren't, and have more fundamental structure (s-expressions desugar to a pile of cons cells). |
 | | If you were in an explicitly-typed language, you might use this type parameter by plunking it down in the type constraints that appear somewhere in the body code (say in the type of a function argument). |
 | | My favorite examples have to do with functions that are polymorphic (oops, polytypic!) in a data structure: size, depth, map, etc., defined not just for lists or for binary trees, or for multi-branch trees, etc., but for any (algebraic) data structure, once and for all. |
| lambda-the-ultimate.org /node/view/1234 (3087 words) |
|