unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Marco Maggi" <marco.maggi-ipsu@poste.it>
Subject: design advice on predicate name
Date: Fri, 18 Aug 2006 07:42:29 +0200	[thread overview]
Message-ID: <J46IIT$8AAD8E9C32CA7D7E58BE56AE16CF686B@poste.it> (raw)

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


             reply	other threads:[~2006-08-18  5:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-18  5:42 Marco Maggi [this message]
2006-08-18 13:49 ` design advice on predicate name Neil Jerram
  -- strict thread matches above, loose matches on Subject: below --
2006-08-18 19:01 Marco Maggi
2006-08-19 10:37 ` Neil Jerram
2006-08-20  6:29 Marco Maggi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='J46IIT$8AAD8E9C32CA7D7E58BE56AE16CF686B@poste.it' \
    --to=marco.maggi-ipsu@poste.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).