From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.bugs Subject: bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN Date: Fri, 26 Mar 2021 16:32:39 +0100 Message-ID: References: <87sg4kyw1q.fsf@tcd.ie> <87lfacvtwt.fsf@web.de> <87blb6h8f2.fsf@web.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b6622d05be723e5d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35686"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , "Basil L. Contovounesios" , 47368@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 26 16:33:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lPoST-00098u-Sv for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Mar 2021 16:33:10 +0100 Original-Received: from localhost ([::1]:57242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPoSS-0003v3-Hc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Mar 2021 11:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPoSL-0003uv-T8 for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 11:33:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPoSL-00006e-Le for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 11:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPoSL-0007OB-Ie for bug-gnu-emacs@gnu.org; Fri, 26 Mar 2021 11:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Mar 2021 15:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47368 X-GNU-PR-Package: emacs Original-Received: via spool by 47368-submit@debbugs.gnu.org id=B47368.161677277928395 (code B ref 47368); Fri, 26 Mar 2021 15:33:01 +0000 Original-Received: (at 47368) by debbugs.gnu.org; 26 Mar 2021 15:32:59 +0000 Original-Received: from localhost ([127.0.0.1]:42252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPoSJ-0007Nv-0b for submit@debbugs.gnu.org; Fri, 26 Mar 2021 11:32:59 -0400 Original-Received: from mail-vk1-f169.google.com ([209.85.221.169]:39571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPoSG-0007Ng-UA for 47368@debbugs.gnu.org; Fri, 26 Mar 2021 11:32:58 -0400 Original-Received: by mail-vk1-f169.google.com with SMTP id 11so1272646vkx.6 for <47368@debbugs.gnu.org>; Fri, 26 Mar 2021 08:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fZw37DPGfc0eJFaULCQ96DNnmTQ5E9z5qzMsD3l2bcc=; b=sYIOKypbWUWZdcG8vAYP18PT9gkdEhVZD+MWFqdMqAcLqDsq/Y0qkjVJ44kaTVK8R3 M7ZXoTfqoWvoeppUUC+W94Hff5av+hMOLBFki1cRM0ywBP20uuFylGSkWOwK3hl25gG7 JBgYY4pZ4CQkcgQA931agFz0YjkzwEge1C5LfcXlUctje/R31RMGZAyEb2su9nTd/nYR lR40zok4TMKcVhRi/Va1SARIwm/s9EeCTSkc9sYxgIXAA/1rRUL3G4PnsbCnrRiMc2VX ZJjy8vmoOO1DhdIigVJ2QwMiGiN6Cm6kLqwNA4IH8Lw95qVf9uqEd3x3G8Sck2cR4YVd wPIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fZw37DPGfc0eJFaULCQ96DNnmTQ5E9z5qzMsD3l2bcc=; b=TRUfFQpmf8qJspLBRn+QEqrPkQP2hthTs6v/hvUjosU1JrzUPizlVjgFx32bAHfT7H pVAJqaRm4W98Ntht+aOldkLXcj0p216RE7VpXGQtYSIxPaK95ithYZ/cm1nO/NWvcvQy hZJpJ+1wp+qf+YG2HO1re1I7QWoM5/Du2CgHSFzw5X0BYdFtVUFhcen30a30Dak3IueV 9zsaO8TNELR/xxK+cWOzNAyCtW6rIJvsjMYNJ4T6W1ggwVbUlgVTMWIDuh0thiDzpGul G/1I2BdcEuJ85MYg9jRPQhKchNJVOObG6/IQ1r0X0M9SktjRs3Hpc0FbDZrCXkQO++6Y nc9A== X-Gm-Message-State: AOAM532/z7JN1IRyYhcq7tAyHFx6r9STmJ/sypKilI/QYZhNqq4WuO/N tVjcKBi1b0GqlkwrJuNqpgJi8Pkcv6FYvARuMsY= X-Google-Smtp-Source: ABdhPJxMI4QS5x8zGqxm0nH+JZ1ayQYQixsTJFdjc/Au0QJDzuIKQvpWYoDDMM3Ehj/vX4Ws7MLIlxX3UoanVucb7WU= X-Received: by 2002:a1f:ae94:: with SMTP id x142mr8669996vke.12.1616772771241; Fri, 26 Mar 2021 08:32:51 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203049 Archived-At: --000000000000b6622d05be723e5d Content-Type: text/plain; charset="UTF-8" Well, as a hobbyist programmer, this makes more sense to me anyway. If users don't want the behavior of using `equal` then they could just as well use `alist-get`. I hope you don't mind if I write down some thoughts (and macro's) I have on my mind. Personally, I think it would be great for growing the community, if emacs-lisp got more approachable (in the direction of python). I actually got here because, as an exercise, I was trying to implement Norvig's sudoku solver in emacs-lisp, which was a quite frustrating exercise (this is no complaint, but just a fact). I think it would be great if emacs-lisp could look, and become readable and usable, more like that (in which map.el and seq.el are doing a very nice job of course). So that emacs-lisp could actually become a nice and friendly teaching language, which is equally fun to script in as in python. Actually, I got the feeling that it would be nice to have list-comprehension like syntax also. Therefore, I tried to create some general `array` and `table` macro's here (which is my first macro exercise ever). As it is just an exercise it is undocumented, but you can very easily get the idea from looking at the (commented out) tests at the bottom of that file. Also, from looking at map.el, I assume I should probably implement it using cl-defgeneric. Haha... sorry for the elaborate answer. You can neglect most of this message, but maybe someone is interested and shares some of these ideas (or likes the idea of these macro's). I just couldn't resist to share these thoughts... --000000000000b6622d05be723e5d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Well, as a hobbyist programmer, this makes more sense= to me anyway. If users don't want the behavior of using `equal` then t= hey could just as well use `alist-get`.

I hope yo= u don't mind if I write down some thoughts (and macro's) I have on = my mind.
Personally, I think it would be great for growing th= e community, if emacs-lisp got more approachable (in the direction of pytho= n).
I actually got here because, as an exercise, I was trying to = implement Norvig's sudoku so= lver in emacs-lisp, which was a quite frustrating exercise (this is no = complaint, but just a fact).
I think it would be great if emacs-l= isp could look, and become readable and usable, more like that (in which ma= p.el and seq.el are doing a very nice job of course). So that emacs-lisp co= uld actually
become a nice and friendly teaching language, which= is equally fun to script in as in python.

Act= ually, I got the feeling that it would be nice to have list-comprehension l= ike syntax also. Therefore, I tried to create some general `array` and `tab= le` macro's here (which is my first macro exercise ever).
As it is just an exercise it is undocumented, but you can very easi= ly get the idea from looking at the (commented out) tests at the bottom of = that file. Also, from looking at map.el, I assume I should probably
implement it using cl-defgeneric.

Haha... = sorry for the elaborate answer.=C2=A0 You can neglect most of this message,= but maybe someone is interested and shares some of these ideas (or likes t= he idea of these macro's). I just couldn't resist to share these th= oughts...
--000000000000b6622d05be723e5d--