From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron Newsgroups: gmane.emacs.devel Subject: Re: Copyright assignment Date: Sat, 09 Sep 2023 18:35:28 +0200 Message-ID: References: <87ledfmjy4.fsf@axelf.se> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18710"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Axel Forsman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 09 18:36:25 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qf0wb-0004f2-5w for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Sep 2023 18:36:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qf0vx-0003Ah-JB; Sat, 09 Sep 2023 12:35:45 -0400 Original-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 1qf0vt-00037o-Eo for emacs-devel@gnu.org; Sat, 09 Sep 2023 12:35:42 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qf0vo-0001ry-FB for emacs-devel@gnu.org; Sat, 09 Sep 2023 12:35:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1694277332; bh=qOyLNsfgcOX0HQ6SVc3VfERQLRauSFJzJc/t6I+ZrCM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=glu3JLPfSkfZJAxQenzgY4rzZVvnbeQwTOcJE21KNoFCgqDJ4e1myo5PcqySTjMBx 4ulPo2ZaRA8XOM+d4q5WgrDRBhP+t9v+8owK0FlssZdiSlZROuZxRCR6Eiw54NqKz2 fd3d+NAS9YfeME5zPaAu4lfrZlDFmFGZTZ+FqgIAzMG97Z8dNIM6hKKz+2S/Gq6W1r ntzJXvd83L57zGasL/wZAipiJbD/+6mNNGf+l1AoifO2fmnidrTSMiwmYZFJvUQrxE +gQpnrA5a/br53kNB4lLg1rbhpHZJYvrL0Z5W2J8vQhBbx5Nx32csa9cQ11+SeaRg/ CVqw/iniMyurg== In-Reply-To: <87ledfmjy4.fsf@axelf.se> (Axel Forsman's message of "Sat, 09 Sep 2023 15:43:01 +0000 (UTC)") Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310413 Archived-At: Hello Axel, > (The main reason being that I have written a package > that I believe is a good fit for GNU ELPA: > [derl.el]) This looks interesting, but I think I spot a subtle (albeit classic) bug: It seems that you define a bidirectional conversion between Elisp and Erlang, without taking into account the ambiguity of nil in Elisp. Namely, in Elisp, the empty list is a symbol. Your conversion maps Erlang atoms to Elisp symbols, and AFAICT it will happily map the atom nil to the symbol nil, while in the other direction (Elisp to Erlang), nil is mapped to the empty list. That means that the Erlang improper list [foo|nil] maps to the proper Elisp list (foo) which then maps to the proper Erlang list [foo]. If you know for sure that you don't have any nil atoms coming from your Erlang code, that shouldn't be a problem. But in general it might lead to surprising results. Best, Eshel