GNU bug report logs - #66890
29.1; buffer-size should also accept the buffer's name as string argument

Previous Next

Package: emacs;

Reported by: Daniel Nagy <danielnagy <at> posteo.de>

Date: Thu, 2 Nov 2023 05:54:02 UTC

Severity: wishlist

Tags: moreinfo

Found in version 29.1

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Daniel Nagy <danielnagy <at> posteo.de>
Cc: 66890 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: bug#66890: 29.1; buffer-size should also accept the buffer's name as string argument
Date: Sun, 05 Nov 2023 07:35:30 +0200
> Cc: 66890 <at> debbugs.gnu.org
> From: Daniel Nagy <danielnagy <at> posteo.de>
> Date: Sat, 04 Nov 2023 20:57:41 +0000
> 
> In general, I would say that, if the computer can unambigously decide
> what is supposed to happen, it should help me and automatically correct
> my "mistakes".

IME, this is a somewhat dangerous tendency.  In practice, it is easy
for a program to mistakenly interpret invalid inputs as some
transformation of valid ones, and do something that is very far from
what the caller meant.  So whether to "correct mistakes" or fail the
call is largely a judgment call, and it is not an accident that most
APIs prefer to fail in those cases, reserving the "correction" path
only for documented polymorphic situations.




This bug report was last modified 109 days ago.

Previous Next


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