emacs-devel
[Top][All Lists]
Advanced

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

Re: master a6b5985: Avoid duplicated character classes in rx


From: Stefan Monnier
Subject: Re: master a6b5985: Avoid duplicated character classes in rx
Date: Tue, 03 Dec 2019 12:39:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> Probably, but I still think it's bad practice to use the return value of
>> an operation which is fundamentally a side-effect.
> So you've never written
> (if (setq var value) ...)

Guilty as charged.  But every time I do so I feel a bit dirty (and not
just because I feel dirty every time I use `setq`).
And I have often regretted writing such code.

To my defense, `setq` is the only such exception I can think of.


        Stefan




reply via email to

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