[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should undefined behavior be encouraged in Emacs?
From: |
Richard Stallman |
Subject: |
Re: Should undefined behavior be encouraged in Emacs? |
Date: |
Mon, 03 Oct 2011 21:55:14 -0400 |
> In simple cases such as (goto-char -5), users tend to see what the
> behavior is, and are likely to write code that depends on it, even if
> it isn't documented. Thus, leaving it undocumented doesn't mean that
> we can change it and nobody will notice.
If you make it a hard, inescapable error, that won't happen.
That is true; this would pressure everyone to carefully make sure not
to supply out-of-range arguments. But is that goal really more
desirable than the convenience of rounding out-of-range arguments?
--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
Use free telephony http://directory.fsf.org/category/tel/
Re: Should undefined behavior be encouraged in Emacs?, Alan Mackenzie, 2011/10/03
Re: Should undefined behavior be encouraged in Emacs?, Andreas Schwab, 2011/10/03
Re: Should undefined behavior be encouraged in Emacs?, Richard Stallman, 2011/10/03
Re: Should undefined behavior be encouraged in Emacs?, Eli Zaretskii, 2011/10/03
Re: Should undefined behavior be encouraged in Emacs?, Richard Stallman, 2011/10/03
Re: Should undefined behavior be encouraged in Emacs?, Paul Eggert, 2011/10/03
Re: Should undefined behavior be encouraged in Emacs?, Dave Abrahams, 2011/10/03