[Top][All Lists]

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

Re: Fix nreverse

From: Stefan Monnier
Subject: Re: Fix nreverse
Date: Tue, 20 May 2014 22:53:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> I find the decision to leave out strings in nreverse inconvenient.  Why
> don't we dispatch to reverse when SEQ is string instead of throwing an
> error? This would make nreverse and reverse symmetric.  I hope "N" mean
> we `may' not `must' destructively modify the argument. Objections?

I guess it's OK if we change the meaning of nreverse to "may modify
destructively", but then please change the docstring to say so, and
*generically* (rather than saying explicitly how that's interpreted for
each possible type).


reply via email to

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