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

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

bug#61730: 30.0.50; Compiler warnings for delq and delete


From: Michael Heerdegen
Subject: bug#61730: 30.0.50; Compiler warnings for delq and delete
Date: Sun, 21 May 2023 05:57:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Ruijie Yu <ruijie@netyu.xyz> writes:

> Maybe we can take inspirations from other langagues?  In rust we have
> the `#[must_use]' attribute [1], and in C++17 and C23 we have the
> `[[nodiscard]]' attribute [2] [3].

These are not bad.  I like "nodiscard".

> Also, is there any definitive relation between this
> 'important-return-value property and the existing "pure" function
> declaration?  Like the `(declare (pure t))' thing in the front of a
> defun.

Interesting question.  Does 'pure' (or 'side-effect-free') imply
'important-return-value'?

Michael.





reply via email to

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