On 3 April 2013 20:32, Thien-Thi Nguyen <[email protected]> wrote: > () Daniel Hartwig <[email protected]> > () Wed, 3 Apr 2013 18:47:22 +0800 > > Interesting. Though this does gradually erode the type barrier > erected by the web module. I am reluctant to cede this territory. > > I suppose playing whack-a-mole is fun sometimes, for a while. > > Instead of this cruft accumulating in a few places (the web modules), > it becomes gratutiously spread around and duplicated in other > programs. > > Well more precisely, in those programs which talk to such servers, and > actually care about that particular data. (Many programs do not.) > > It was previously suggested to implement a permissive flag that, > while not passing unparsed data to the users, will at least not raise > errors and stop. > > In this direction, you might as well go higher-order. Client code > specifies the conversion procedure, and there is a reasonable default > (also exported, so that the user can compose it w/ their own bad-input > detection/handling). This is more Schemely, in my mind.
That is ‘declare-header!’.
