[plt-dev] `port->list'

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Dec 11 10:53:08 EST 2009

I second this; the name is misleading.

On Dec 11, 2009, at 4:44 AM, Carl Eastlund wrote:

> 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
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-dev

Posted on the dev mailing list.