There's something I've been wondering about. In Slime, in the REPL buffer, you can click on a presentation, and the thing you click on gets inserted into the buffer. So this is really nice when some object that does not have a readable printed representation gets printed.
But you can also use it for things that DO have a readable printed representation, such as a list of fixnums.
So far so good, but the problem is that the semantics of these two cases are different, because in the first case Lisp sees the object itself, whereas in the second case Lisp reads and evaluates the object. No eval in the first case, eval in the second case. The fact that the command does something different for these two cases makes it confusing for me.
Does this bother anyone else?
I would like it better if, in the second case, it inserted a quote, so that the semantics was always the same. (You could always go back and delete the quote if you really want evaluation.)
Dan Weinreb dlw@itasoftware.com writes:
Does this bother anyone else?
I would like it better if, in the second case, it inserted a quote, so that the semantics was always the same. (You could always go back and delete the quote if you really want evaluation.)
i agree that it'd be better conceptually, but i really don't think it's an issue. has it caused you any problems?
On Fri, 2006-11-03 at 16:06 +0100, Marco Baringer wrote:
Dan Weinreb dlw@itasoftware.com writes:
Does this bother anyone else?
I would like it better if, in the second case, it inserted a quote, so that the semantics was always the same. (You could always go back and delete the quote if you really want evaluation.)
i agree that it'd be better conceptually, but i really don't think it's an issue. has it caused you any problems?
Well, I haven't used the feature that much, but it sure did confuse me as I was trying to get used to using the feature.
Dan Weinreb dlw@itasoftware.com writes:
I would like it better if, in the second case,
...that is, when the value of the presentation is a CONS or a non-keyword SYMBOL...
it inserted a quote, so that the semantics was always the same. (You could always go back and delete the quote if you really want evaluation.)
I agree this would be convenient in some cases, but the code should at least make some heuristic attempt to detect whether the insertion point is already in a quote, and avoid inserting the quote in that case. Otherwise, the magically inserted quotes would be too annoying.
Regards,