From: Marcin Borkowski <mbork@mbork.pl>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: help-gnu-emacs@gnu.org
Subject: Re: "cl-case" with strings
Date: Thu, 04 Feb 2016 08:23:52 +0100 [thread overview]
Message-ID: <87d1sdc513.fsf@mbork.pl> (raw)
In-Reply-To: <56B2ABD6.6030902@yandex.ru>
On 2016-02-04, at 02:39, Dmitry Gutov <dgutov@yandex.ru> wrote:
> On 02/04/2016 04:13 AM, Emanuel Berg wrote:
>> Today when I did a new interface to my interface [1]
>> to `google-translate' which is an interface to
>> Google Translate, I used `cl-case' with strings but
>> was frustrated with failure, because `cl-case' uses
>> equality function(s) that report nil for
>> identical strings.
>>
>> So I wrote this.
>
> Or you could use pcase.
Or this idiom:
(cl-case (intern string)
...)
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
next prev parent reply other threads:[~2016-02-04 7:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 1:13 "cl-case" with strings Emanuel Berg
2016-02-04 1:39 ` Dmitry Gutov
2016-02-04 7:23 ` Marcin Borkowski [this message]
2016-02-04 22:12 ` Emanuel Berg
2016-02-04 22:30 ` Stefan Monnier
2016-02-04 22:41 ` Emanuel Berg
2016-02-05 4:55 ` Dmitry Gutov
2016-02-05 4:58 ` Emanuel Berg
2016-02-05 5:02 ` Dmitry Gutov
2016-02-05 18:20 ` Emanuel Berg
2016-02-05 18:37 ` Dmitry Gutov
2016-02-04 23:03 ` Marcin Borkowski
2016-02-05 4:05 ` Emanuel Berg
2016-02-05 8:25 ` Marcin Borkowski
[not found] ` <mailman.3642.1454623944.843.help-gnu-emacs@gnu.org>
2016-02-04 22:16 ` Joost Kremers
2016-02-05 4:52 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d1sdc513.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).