unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: "Mikael Djurfeldt" <mikael@djurfeldt.com>
Cc: bug-guile@gnu.org
Subject: Re: generic * and 0
Date: Tue, 5 Dec 2006 16:33:40 +0100	[thread overview]
Message-ID: <66e540fe0612050733v4ab832b5s83e049a1ca6a4e68@mail.gmail.com> (raw)
In-Reply-To: <45757D28.3050404@ludens.elte.hu>

2006/12/5, SZAVAI Gyula <szgyg@ludens.elte.hu>:
> Kevin Ryde wrote:
> > "Mikael Djurfeldt" <mikael@djurfeldt.com> writes:
> >
> >> (Not entirely sure that the common zero is a good idea, but I tend
> >> to think so.)
> >>
> >
> > I suppose it's a question of whether "*" should do that, or leave it
> > up to the application.
> >
>
> I think there are 3 solution:
> 1, make * really generic (non-associative, no 0, no 1)

In Guile, this might be tricky to do without large damage to performance.

> 2, make * non-generic

This would make it impossible to extend the arithmetic system with matrices etc.

> 3, document this strange behaviour

Absolutely.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


  reply	other threads:[~2006-12-05 15:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 17:58 generic * and 0 SZAVAI Gyula
2006-12-01 19:56 ` Kevin Ryde
2006-12-01 20:22   ` Mikael Djurfeldt
2006-12-01 21:52     ` Kevin Ryde
2006-12-04  0:26       ` Kevin Ryde
2006-12-04 18:26         ` Mikael Djurfeldt
2006-12-05  0:00           ` Kevin Ryde
2006-12-05 14:07             ` SZAVAI Gyula
2006-12-05 15:33               ` Mikael Djurfeldt [this message]
2006-12-05 15:51                 ` Ludovic Courtès
2006-12-05 19:42                   ` Mikael Djurfeldt
2006-12-06 15:52             ` Marius Vollmer
2006-12-07 15:28               ` Mikael Djurfeldt

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=66e540fe0612050733v4ab832b5s83e049a1ca6a4e68@mail.gmail.com \
    --to=mikael@djurfeldt.com \
    --cc=bug-guile@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).