[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Order of arguments to sequence :TEST functions
- To: DCP@SCRC-QUABBIN.ARPA
- Subject: Re: Order of arguments to sequence :TEST functions
- From: NGALL@G.BBN.COM
- Date: Mon, 29 Feb 1988 17:49:00 -0000
- Cc: common-lisp@SAIL.STANFORD.EDU
- In-reply-to: <19880229143424.3.DCP@SWAN.SCRC.Symbolics.COM>
- Sender: NGALL@G.BBN.COM
Date: Mon, 29 Feb 88 09:34 EST
From: David C. Plummer <DCP@QUABBIN.SCRC.Symbolics.COM>
CLtL page 247 says
... (funcall testfn item (keyfn x)) ...
I'm curious to know why this order was chosen instead of
... (funcall testfn (keyfn x) item) ...
My personal theory is that the order of the arguments to the TESTFN is
the same as their order in the `surface' call, i.e., in most (all?) of
the sequence functions, the ITEM appears before the sequence (and
therefore before each element X of the sequence). This theory makes
it easy for me to remember the order of arguments to the TESTFN (so I
would hate to see the order changed).