unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Damien Mattei <damien.mattei@gmail.com>
To: guile-devel <guile-devel@gnu.org>
Subject: Fwd: guile array different than srfi 25
Date: Tue, 11 Jan 2022 21:34:32 +0100	[thread overview]
Message-ID: <CADEOadcT67-tg91Y9xvkr+RPUHPgQQ8T0QKsP3RDVkKByiBFSg@mail.gmail.com> (raw)
In-Reply-To: <CADEOade=fcRVnKrHdUpCUUcJKQGW1m-fZo1WEz3xkcVn3NL8RA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]

---------- Forwarded message ---------
From: Damien Mattei <damien.mattei@gmail.com>
Date: Tue, Jan 11, 2022 at 9:34 PM
Subject: Re: guile array different than srfi 25
To: lloda <lloda@sarc.name>


sorry i have no time for this, perhaps only the creation of array differs
regards
Damien

On Tue, Jan 11, 2022 at 6:22 PM lloda <lloda@sarc.name> wrote:

>
> Guile arrays were implemented before srfi-25 existed and aren't supposed
> to be compatible with it. There are many other array srfis all with
> incompatible syntaxes...
>
> However srfi-25 is tiny so it should be really simple to implement it on
> top of Guile arrays. If you or anyone else submits a patch, I'm sure it
> will be considered.
>
> Regards
>
> Daniel
>
>
> On 11 Jan 2022, at 12:19, Damien Mattei <damien.mattei@gmail.com> wrote:
>
> hello,
>
> why guile array differs from SRFI 25:
> make-array syntax :
>  https://www.gnu.org/software/guile/manual/html_node/Array-Procedures.html
>
> (make-array 'ho 2 3) ⇒ #2((ho ho ho) (ho ho ho))
>
> different than srfi 25:
>
> https://srfi.schemers.org/srfi-25/srfi-25.html
>
> (make-array shape obj)
>
>
> Returns a newly allocated array whose shape is given byshape.  If obj is provided, then each element is
> initialized to it. Otherwise the initial contents of each element is
> unspecified. The array does not retain a dependence toshape.
>
> it creates incompatibilties in code .
>
> Damien
>
>
>

[-- Attachment #2: Type: text/html, Size: 3028 bytes --]

      parent reply	other threads:[~2022-01-11 20:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-11 11:19 guile array different than srfi 25 Damien Mattei
2022-01-11 17:22 ` lloda
     [not found]   ` <CADEOade=fcRVnKrHdUpCUUcJKQGW1m-fZo1WEz3xkcVn3NL8RA@mail.gmail.com>
2022-01-11 20:34     ` Damien Mattei [this message]

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=CADEOadcT67-tg91Y9xvkr+RPUHPgQQ8T0QKsP3RDVkKByiBFSg@mail.gmail.com \
    --to=damien.mattei@gmail.com \
    --cc=guile-devel@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).