guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile array different than srfi 25


From: lloda
Subject: Re: guile array different than srfi 25
Date: Tue, 11 Jan 2022 18:22:43 +0100


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 :

(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 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]