emacs-devel
[Top][All Lists]
Advanced

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

Re: Saving match data


From: Philipp Stephani
Subject: Re: Saving match data
Date: Sat, 17 Jun 2017 14:02:26 +0000



Stefan Monnier <address@hidden> schrieb am Sa., 17. Juni 2017 um 15:53 Uhr:
> +            (when (or (function-get function 'pure)
> +                      (function-get function 'side-effect-free))
> +              (insert "\nThis function does not change the match data."))

Wouldn't it be more useful to say it doesn't have side-effects (which
would obviously imply it doesn't change the match-data, along with all
other global state)?


I'd prefer to mention the match data explicitly, because users might not be aware that they are part of the global state. Maybe something like "This function does not (access|change) global state, including the match data" (where "access" can be used for the pure ones). 

reply via email to

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