help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "cl-case" with strings


From: Marcin Borkowski
Subject: Re: "cl-case" with strings
Date: Fri, 05 Feb 2016 09:25:25 +0100
User-agent: mu4e 0.9.13; emacs 25.1.50.1

On 2016-02-05, at 05:05, Emanuel Berg <embe8573@student.uu.se> wrote:

> Marcin Borkowski <mbork@mbork.pl> writes:
>
>>>> Or this idiom: (cl-case (intern string) ...)
>>>
>>> Then the keys cannot be strings - not an issue in
>>> this "case"...
>>
>> Why not? It works fine for me when `string' is
>> a string.
>
> It works for me too but to me it is rather a hack
> than idiomatic.

Well, it was not my idea - I found it somewhere (can't find it right
now).  I'm not sure whether this is a hack or the proper way to do it;
I quite like it personally.

> I'd like the keys to be strings if the (original) data
> is. Then the keys/strings are also properly
> highlighted as strings because that's what they are.

Ah, I see now what you meant.

> Now when I have my defun I don't want to change for
> this, but had I known of this before, perhaps (?)
> I wouldn't have written the defun.

:-)

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]