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 <[email protected]> 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