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

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

Re: Elisps rplacd vs CL's one


From: Stefan Monnier
Subject: Re: Elisps rplacd vs CL's one
Date: Sat, 29 Aug 2015 18:05:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Emacs Lisp's rplacd and Common Lisp's RPLACD are called the same, but
> behave differently (ELisp's one returns the NEWCDR and CL's one returns
> the modified cons).  What is the reason for that?  Is it an accident?
> While I do understand that EL ≠ CL, having a function called the same in
> both, doing roughly the same thing, but not quite, seems a bit
> misleading, and I was just curious whether there was a deep reason for
> that.

FWIW, I consider the use of rplacd's return value to be a very bad idea.


        Stefan




reply via email to

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