From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: design advice on predicate name Date: Fri, 18 Aug 2006 14:49:31 +0100 Message-ID: <87hd0a2lxw.fsf@ossau.uklinux.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155909431 27457 80.91.229.2 (18 Aug 2006 13:57:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2006 13:57:11 +0000 (UTC) Cc: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Aug 18 15:57:08 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GE4pu-0005zH-UJ for guile-user@m.gmane.org; Fri, 18 Aug 2006 15:56:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GE4pu-0003Zx-EB for guile-user@m.gmane.org; Fri, 18 Aug 2006 09:56:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GE4po-0003ZD-BH for guile-user@gnu.org; Fri, 18 Aug 2006 09:56:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GE4pn-0003Yp-Ta for guile-user@gnu.org; Fri, 18 Aug 2006 09:56:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GE4pn-0003Ye-An for guile-user@gnu.org; Fri, 18 Aug 2006 09:56:27 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GE4wV-00010j-RW for guile-user@gnu.org; Fri, 18 Aug 2006 10:03:24 -0400 Original-Received: from laruns (host86-129-125-104.range86-129.btcentralplus.com [86.129.125.104]) by mail3.uklinux.net (Postfix) with ESMTP id BD5E540A0E4; Fri, 18 Aug 2006 13:50:25 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id 33AA26F709; Fri, 18 Aug 2006 14:49:31 +0100 (BST) Original-To: "Marco Maggi" In-Reply-To: (Marco Maggi's message of "Fri, 18 Aug 2006 07:42:29 +0200") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5453 Archived-At: "Marco Maggi" writes: > Ciao, > > I have two predicate functions that act upon a vector > or matrix: the hit predicate produces a single #t/#f > result while the map predicate produces a vector or rank > 2 array of #t/#f values. > > Using generic functions I can write functions with > math operators that act upon common numbers or vector and > matrices without visible difference. > > Example: I have two predicates HIT-NAN? and MAP-NAN? > which one it is better to call NAN? I'm afraid I don't understand. Perhaps you could write the down for the two possibilities that you have in mind. > By the way: the NUMBER? predicate is supposed to return > #t for proper number SMOBs or for any object that can > be used as argument of math operators? No, number? is supposed to return #t only for Guile's built-in numeric types. Regards, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user