[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Send table rows to OCaml as tuples
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] Send table rows to OCaml as tuples |
Date: |
Thu, 17 Nov 2022 11:35:43 +0000 |
necaris@gmail.com writes:
> From: Rami Chowdhury <necaris@gmail.com>
>
> Previously, tables (i.e. lists-of-lists) came through as
> arrays-of-arrays. Since OCaml arrays are required to be homogeneous in
> their types, this meant tables with heterogenous types within a row
> could not be handled. This change represents tables as arrays of tuples,
> which is more flexible, while preserving the previous behavior for
> lists.
Thanks for the patch, and sorry for the late reply.
The idea looks reasonable. However, the proposed change will break the
existing code that relies on the current behaviour.
Would it be possible to auto-detect when the types are homogeneous and
use arrays? Otherwise, use tuples, as you proposed.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] Send table rows to OCaml as tuples,
Ihor Radchenko <=