From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sARCJ7EcdmOSSQEAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 12:36:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cBAmJ7EcdmMEnwAAauVa8A (envelope-from ) for ; Thu, 17 Nov 2022 12:36:17 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 37BF98D98 for ; Thu, 17 Nov 2022 12:36:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovdAv-0004Bi-6x; Thu, 17 Nov 2022 06:35:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovdAm-0004BE-04 for emacs-orgmode@gnu.org; Thu, 17 Nov 2022 06:35:12 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovdAi-0008Ua-P1 for emacs-orgmode@gnu.org; Thu, 17 Nov 2022 06:35:11 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 53610240105 for ; Thu, 17 Nov 2022 12:35:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668684904; bh=pBAvd1H4XJMEXXFVMweTiiVPqLpGhxqM4ikWwquBh20=; h=From:To:Cc:Subject:Date:From; b=N57APr3isyZU+O6xAoYYpTkW2MdZSysLg0xP84wqSuCMe88hKAR7DW4J85rzKcvw+ gKV0kXq9mh2JTuu3AgCrG6ePOpZwZrIkXvDx0FT48HYz435bYpNcrVN8qcuQ9cHyUy g1obCvU1ULiY6/6CreSo/IQL+hrN5SgX29ShjLKQv9ObFowzUOzfQmh2rP99cCJRLA e8C3YvO3Os8fwKzy6QbRdMh5oY+Ii0R8jkTLrBbMfcVwsxKbl5C2qe7GTR2Po2kCYi fSSmRdswNhaU3MzkhKqhKGpDMentbakvX81v+w5/5QSw6QEbNofUXBnZaxNRbOYhhI MFZl5sky1m+sw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NCdBD3rXwz9rxM; Thu, 17 Nov 2022 12:35:00 +0100 (CET) From: Ihor Radchenko To: necaris@gmail.com Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Send table rows to OCaml as tuples In-Reply-To: <20220223193934.226994-1-necaris@gmail.com> References: <20220223193934.226994-1-necaris@gmail.com> Date: Thu, 17 Nov 2022 11:35:43 +0000 Message-ID: <87r0y1bypc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668684977; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=m65dVFEx5Kqr17zjWZTTJkGJ8rN6SXAmPGypczIRUgs=; b=CdJ+DhqWiIRL73gz3Ie+FwD8sazFMmprVog/mnpj5xI48Hl8mp7dD8D+SXT32SazG3i7Xz ZQlSXqudk2VvegXgsQYJfctzGuShr9JeOLnt4CGyYFKdxBfLT5qk6H1tBtzqGecVadUML+ mRbeiicuVtQCnv2K9xDNVtW6/opTIcw6e7a48sM33Mxkjlh1bbWERpEcbQ3rBhUKKDp/lL hrTpyBPBj2vwTBALiOT8/6O7WAWOsNQN3MVkiSxNODYFMkHHmOlVnIXZUnxKpr8h23cufu pBtgH30/+MTG75JOp3f/VbyHyWJ7sAvGrj4d7beeHc5YmnbMYmcPRuNCk15FAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668684977; a=rsa-sha256; cv=none; b=W2ghkvlZKAaiaB/EhBKDqpTwcFJejyxEBwbMzhgc0xRK6Fk4gqq2gThuEMRM76H2cnjFiS VoQqGaf7V1Hqm9PQlmea4Kndkd7O3sa/BKZ38JqxY8C+7bHx52ylCPycqTjxlJyqGPG7US jC8/N/XM5TndZRODUhhseLODep+esaHtZ9a/ZFsoyupTTEAW/DsoGa66ve3oBmlDwjbZa3 uf0mvLcuuIdNhjP1h/bKZSCVI8QUfbgNuOW7UFIzsbSZeGxmlWP2GiZFLZZBKvJaiQBImg 2Bl/zqv1rZR2sy0V4PSV7qzLyUY4G1x+OsA5IeEC25cVjy+WIR6M7tmlljHuig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=N57APr3i; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=N57APr3i; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 37BF98D98 X-Spam-Score: -3.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: D+dDVs835NxY necaris@gmail.com writes: > From: Rami Chowdhury > > 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 . Support Org development at , or support my work at