[r6rs-discuss] [Formal] allow port position to be "magic cookie"

From: John Cowan <cowan>
Date: Thu Mar 15 17:12:26 2007

Per Bothner scripsit:

> Suggestion: For non-binary ports allow the use of any arbitrary
> integral "magic cookie" as the position. One could also allow
> an arbitrary value (such as a record), though that reduces the
> "typeability" of these procedures. However, that would allow
> a straight-forward wrapping of C's fgetpos/fsetpos.

Go with the arbitrary object. As someone who's had to put up (in two
separate systems) with textual files that can't be indexed by a single
integer (short of Goedel-numbering tricks), I firmly believe such a
cookie should be completely opaque.

-- 
John Cowan    <cowan_at_ccil.org>     http://www.ccil.org/~cowan
But no living man am I!  You look upon a woman.  Eowyn I am, Eomund's daughter.
You stand between me and my lord and kin.  Begone, if you be not deathless.
For living or dark undead, I will smite you if you touch him.
Received on Thu Mar 15 2007 - 17:12:22 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC