[plt-dev] `port->list'

From: Carl Eastlund (carl.eastlund at gmail.com)
Date: Fri Dec 11 04:44:11 EST 2009

On Thu, Dec 10, 2009 at 11:53 PM, Eli Barzilay <eli at barzilay.org> wrote:
> Jay recently fixed the bad order of arguments to `port->list' in the
> implementation of `in-port'.  Since then, I used this useful function
> about 4 or 5 times.
>
> And in *ALL* of these cases, I wrote the code, ran it, saw an error,
> and swapped the arguments.
>
> (port->list read) just doesn't make any sense at all to me.
>
> This was a *very* bad choice of order for the arguments.

Perhaps the problem here is the name?  If it had been (read-all
[reader port]), perhaps the one-argument case of (read-all read) would
have made more sense.

--Carl


Posted on the dev mailing list.