From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: proposal to make null string handling more emacs-y Date: Thu, 26 Apr 2012 01:41:11 +0900 Message-ID: <87fwbrrcgo.fsf@catnip.gol.com> References: <83d36wfcf1.fsf@gnu.org> <834ns7g9r8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335372093 30439 80.91.229.3 (25 Apr 2012 16:41:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2012 16:41:33 +0000 (UTC) Cc: Eli Zaretskii , steve.yegge@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 25 18:41:29 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SN5HQ-0008Mf-29 for ged-emacs-devel@m.gmane.org; Wed, 25 Apr 2012 18:41:24 +0200 Original-Received: from localhost ([::1]:41483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN5HP-0004ct-EE for ged-emacs-devel@m.gmane.org; Wed, 25 Apr 2012 12:41:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN5HM-0004cQ-Nx for emacs-devel@gnu.org; Wed, 25 Apr 2012 12:41:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN5HL-0006XB-4a for emacs-devel@gnu.org; Wed, 25 Apr 2012 12:41:20 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:53864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN5HI-0006WK-Hu; Wed, 25 Apr 2012 12:41:16 -0400 Original-Received: from 218.231.154.2.eo.eaccess.ne.jp ([218.231.154.2] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) (envelope-from ) id 1SN5HE-0004ZO-5e; Thu, 26 Apr 2012 01:41:12 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 323F2DFC1; Thu, 26 Apr 2012 01:41:11 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: (Stefan Monnier's message of "Wed, 25 Apr 2012 11:30:01 -0400") Original-Lines: 16 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 203.216.5.73 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150011 Archived-At: Stefan Monnier writes: > AFAIK he's not suggesting to change that. He's only suggesting that > instead of throwing an error some functions should behave as if they had > received an empty string. E.g. like (concat "23" nil "45") does. Also kinda like the old "strlen (NULL) => 0" behavior (and generally, derefencing a pointer => 0)... Which was (1) sort of handy in some cases, and (2) really good at hiding bugs... -miles -- XML is like violence. If it doesn't solve your problem, you're not using enough of it.