GNU bug report logs -
#15117
24.3.50; doc of `(forward|backward)-*': state return value
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sat, 17 Aug 2013 16:01:02 UTC
Severity: minor
Tags: wontfix
Found in version 24.3.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
> Am 11.02.2014 05:01, schrieb Stefan Monnier:
>> Says you. For me (and most definitions of side-effects I've ever seen),
>> a side-effecting function is something like a function where the calls
>> can't simply be replaced by their return value.
> Can't see a logic link between a possible return value and the notion of side-effect.
> It all depends from the purpose of the function.
I guess this is a slight misunderstanding. The notion of side-effect is
well defined in CS: « a function or expression is said to have a side
effect if, in addition to returning a value, it also modifies some state
or has an observable interaction with calling functions or the outside
world. »
(http://en.wikipedia.org/wiki/Side_effect_%28computer_science%29)
The notions of "mostly-unintended effect" (like so: (defun
my-point-at-eol (progn (end-of-line) (point)))) or "multi-purpose
functions by means of global variables" (e.g. the use of 'org-ts-what in
org-at-timestamp-p -- which is kind of scary if I may say) are only
special cases of side effects.
--
Nico.
This bug report was last modified 11 years and 98 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.