From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: featurep Date: Tue, 19 Mar 2002 19:03:44 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200203200003.g2K03ik09249@rum.cs.yale.edu> References: <200203190844.g2J8iOq09224@wijiji.santafe.edu> <5xg02wd6cm.fsf@kfs2.cua.dk> <200203192120.g2JLKVQ08387@rum.cs.yale.edu> <5x7ko8yx1y.fsf@kfs2.cua.dk> <200203192319.g2JNJMO09092@rum.cs.yale.edu> <5xwuw8xgo7.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016675243 27392 127.0.0.1 (21 Mar 2002 01:47:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2002 01:47:23 +0000 (UTC) Cc: "Stefan Monnier" , Jason Rumney , rms@gnu.org, emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16nrfn-00077h-00 for ; Thu, 21 Mar 2002 02:47:23 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16nrln-0002n5-00 for ; Thu, 21 Mar 2002 02:53:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16nrff-0006YH-00; Wed, 20 Mar 2002 20:47:15 -0500 Original-Received: from delysid.gnu.org ([158.121.106.20]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16nozt-0004lJ-00; Wed, 20 Mar 2002 17:55:57 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by delysid.gnu.org with esmtp (Exim 3.34 #2) id 16nTd1-0006LW-00; Tue, 19 Mar 2002 19:06:55 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g2K03ik09249; Tue, 19 Mar 2002 19:03:44 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: storm@cua.dk (Kim F. Storm) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2072 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2072 > "Stefan Monnier" writes: > > > > Ok, but if you combine :family 'local and :datagram t, and > > > make-network-process returns nil, you really don't know whether it's > > > because it doesn't support local sockets or datagrams -- so what would > > > you try next? > > > > Why does it matter ? > > What would the code look like using your :feature thing ? > > Probably not a lot different, but without checking for a feature > first, the current code will throw an error for an unsupported feature > indicating (in clear text) what the problem is. That's perfectly fine. I never actually suggested to rely on a `nil' return value. I definitely prefer signalling an error, just make sure that you use a signal that makes the problem clear like `unsupported-network-feature' so that the signal handler can distinguish it from other problems. Stefan _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel