unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: design advice on predicate name
Date: Fri, 18 Aug 2006 14:49:31 +0100	[thread overview]
Message-ID: <87hd0a2lxw.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <J46IIT$8AAD8E9C32CA7D7E58BE56AE16CF686B@poste.it> (Marco Maggi's message of "Fri, 18 Aug 2006 07:42:29 +0200")

"Marco Maggi" <marco.maggi-ipsu@poste.it> 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


  reply	other threads:[~2006-08-18 13:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-18  5:42 design advice on predicate name Marco Maggi
2006-08-18 13:49 ` Neil Jerram [this message]
  -- 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=87hd0a2lxw.fsf@ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-user@gnu.org \
    /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).