Friday, April 07, 2006

Magical Lists

A not very recent post (I'm trying to catch up; only 970 messages to go) to the Haskell-cafe mailing list pointed out that jhc treats (:), [] and (,) as normal data constructors. Some might see this as removing some of the magic from lists, but I see it as sharing the magic around. The number of times I've been annoyed that (:) is hard-coded for lists boggles the mind.

No comments: