[slime-devel] Feature suggestion

Marco Antoniotti marcoxa at cs.nyu.edu
Thu Aug 24 20:29:48 UTC 2006


On Aug 24, 2006, at 3:59 PM, Michael Price wrote:

> On 8/24/06, Marco Antoniotti <marcoxa at cs.nyu.edu> wrote:
>> Hi
>>
>> I would like to suggest a feature for SLIME taken from Lispworks.
>>
>> In LW I can type
>>
>> prompt> member 42 '((3 2 3) (1 42 33) (42 11 22)) :key #'second
>> ((1 42 33) (42 11 22))
>>
>> I.e. a line gets parenthesized if it is not already an expression (of
>> course there are cases where things get hairy, but in general I find 
>> it
>> useful).
>
> CL-USER> (defvar a 4)
>
> A
> CL-USER> (defvar b 9)
>
> B
> CL-USER> a b
>
> 4
> CL-USER>
> 9
> CL-USER> (defun a (x) (sqrt x))
>
> A
> CL-USER> (a b)
>
> 3.0
>
> So what happens in lispworks if I do this:
>
> CL-USER> a b
>
> Do I get a separate 4 and 9 again or do I get 3.0?

You get 3.0.  Also note that in LW if you have

(defun forty-two () 42)

and you type

prompt> forty-two

you get an error.  Also note that multi-line input does not seem to be 
handled.

As I said, while it does have shortfalls, I find the LW behavior 
convenient.

Cheers

--
Marco Antoniotti
New York, NY, U.S.A.




More information about the slime-devel mailing list