From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Marco Maggi" Newsgroups: gmane.lisp.guile.user Subject: design advice on predicate name Date: Fri, 18 Aug 2006 07:42:29 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1155879762 32746 80.91.229.2 (18 Aug 2006 05:42:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2006 05:42:42 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Aug 18 07:42:40 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 1GDx7u-0000RR-Gf for guile-user@m.gmane.org; Fri, 18 Aug 2006 07:42:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDx7t-0006pK-SO for guile-user@m.gmane.org; Fri, 18 Aug 2006 01:42:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GDx7q-0006p9-81 for guile-user@gnu.org; Fri, 18 Aug 2006 01:42:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GDx7n-0006or-Ni for guile-user@gnu.org; Fri, 18 Aug 2006 01:42:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDx7n-0006oo-F3 for guile-user@gnu.org; Fri, 18 Aug 2006 01:42:31 -0400 Original-Received: from [62.241.4.129] (helo=relay-pt3.poste.it) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GDxER-0000AO-7D for guile-user@gnu.org; Fri, 18 Aug 2006 01:49:23 -0400 Original-Received: from poste.it (192.168.144.52) by relay-pt3.poste.it (7.2.063) (authenticated as marco.maggi-ipsu@poste.it) id 4485AE8300171A2C for guile-user@gnu.org; Fri, 18 Aug 2006 07:42:29 +0200 X-Sensitivity: 3 Original-To: "guile-user" X-XaM3-API-Version: 4.1 (B107) X-SenderIP: 62.10.45.223 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:5450 Archived-At: 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? 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? -- Marco Maggi "They say jump!, you say how high?" Rage Against the Machine - "Bullet in the Head" _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user