GNU bug report logs - #52220
29.0.50; [PATCH] Declare struct predicates as pure functions

Previous Next

Package: emacs;

Reported by: Andrea Corallo <akrl <at> sdf.org>

Date: Wed, 1 Dec 2021 10:30:02 UTC

Severity: normal

Tags: patch

Found in version 29.0.50

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 52220 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: 52220 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#52220: 29.0.50; [PATCH] Declare struct predicates as pure
 functions
Date: Wed, 01 Dec 2021 21:32:43 +0100
Andrea Corallo <akrl <at> sdf.org> writes:

> shouldn't we declare structure predicates as pure functions?

I think that's correct?  The predicates take the struct as the argument,
so they seem like pure functions to me.  I've added Stefan to the CCs;
perhaps there's some subtlety here I don't see.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 224 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.