unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: lloda <lloda@sarc.name>
To: Damien Mattei <damien.mattei@gmail.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: guile array different than srfi 25
Date: Tue, 11 Jan 2022 18:22:43 +0100	[thread overview]
Message-ID: <B9A9F575-F639-41F4-862D-2822CA6BB8DE@sarc.name> (raw)
In-Reply-To: <CADEOade6LMGomVES0USRAcML24JfmTtx=0CZMc_2nyw9TSQh4A@mail.gmail.com>

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


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 <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 <https://srfi.schemers.org/srfi-25/srfi-25.html>
> 
> (make-array shape obj)
> 
> 
> Returns a newly allocated array whose shape is given by
> shape.  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 to
> shape.
> 
> 
> it creates incompatibilties in code .
> 
> Damien


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

  reply	other threads:[~2022-01-11 17:22 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 [this message]
     [not found]   ` <CADEOade=fcRVnKrHdUpCUUcJKQGW1m-fZo1WEz3xkcVn3NL8RA@mail.gmail.com>
2022-01-11 20:34     ` Fwd: " Damien Mattei

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=B9A9F575-F639-41F4-862D-2822CA6BB8DE@sarc.name \
    --to=lloda@sarc.name \
    --cc=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).