[Top][All Lists]

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

Re: [Emacs-diffs] master bd22beb: Add seq-random-elt to seq.el

From: Damien Cassou
Subject: Re: [Emacs-diffs] master bd22beb: Add seq-random-elt to seq.el
Date: Tue, 25 Oct 2016 16:23:38 +0200
User-agent: Notmuch/0.22 (http://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu)

Stefan Monnier <address@hidden> writes:

>> +Return nil if SEQUENCE is nil."
>> +  (if (seq-empty-p sequence)
>> +      (error "Sequence cannot be empty")
> Hmm... which is it?

I'm not sure I understand your question. I could have written:

    (error "Sequence %s cannot be empty" sequence)

but I thought it was useless because SEQUENCE is empty and nothing
meaningful would be added to the message.

Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

reply via email to

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