From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ag Ibragimov Newsgroups: gmane.emacs.devel Subject: Re: implementing a reader macro Date: Fri, 22 Jul 2022 17:12:21 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26113"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 23 00:13:25 2022 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 1oF0th-0006by-F1 for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jul 2022 00:13:25 +0200 Original-Received: from localhost ([::1]:49420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oF0tg-0002yQ-08 for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 18:13:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF0sj-0002FC-CS for emacs-devel@gnu.org; Fri, 22 Jul 2022 18:12:25 -0400 Original-Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]:40908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oF0sh-0003yP-Sj for emacs-devel@gnu.org; Fri, 22 Jul 2022 18:12:25 -0400 Original-Received: by mail-ot1-x332.google.com with SMTP id z12-20020a056830128c00b0061c8168d3faso4320323otp.7 for ; Fri, 22 Jul 2022 15:12:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=j/uqrd7qsySo5WTfGMica3ZlpI3o/Hv6ba1y8fNYYjs=; b=oICHxmf9SXPaeoBWS53Zr1AaAHLgULWEsYB0sXzqSFba2YooWaebHJJalKAPgfFROJ nCGCjUGo8PrSSzdNNTxJnCtWoBrWk+lyByjaMBHAMnUhifkhLbxEbhWxNsQ+qRLYHUrW eL1ttsFd0yf5OKLQ0WjgaI+5kXPeU2Sr0RsYHGVeDhcS+o26RnYT7sW2T7mTTqA0lsPG u4VfRMeRwGlcEOODk2KOSgwborAUhIDtyzT019irAgYmeo0KHCQdj1etRFymy6O2yWdj YvsUk8PuDGPHpRRX++LU16zOmubRkNUt0jN654nfNAGyS8+KnJ5eLiOKa37wG0eFxa9w wFAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=j/uqrd7qsySo5WTfGMica3ZlpI3o/Hv6ba1y8fNYYjs=; b=qQ82vx3V2+j4cWG2e2BcM9I5NWQGDXQ8nqzvBDGKP/gDzqk63WZqVz/rogfuCsZK8R Uj7oMbhupuvJFgogsCVj52p8cRlx7t7abL+sNNe8wvcZBeVqv+r72jiEaQrAbFQ/5rL9 PFWuge2PfiFr+2P2dJeyjsvLZAVcVZRWogxckfi9bQAZ8mP3B7bslRLrRmv9Np5UPbt4 QUSuno/kTIdw8xwNa3m20XQIb+xexXiYBdDQljG+qFJac9q8JzZMfOEJ5qMLpH+bepvz BU/lZ5XiYP2WH9Jpn3MvRRMkjmtjIhImWZL/MALVp7RrGyGIBaAhKwxQSQp7x4QJZtac ZSmg== X-Gm-Message-State: AJIora/gowZnjL3yogpmiQ6Ty4k0BUlOLyvlheV7KIyHEUWx5JvfFjeK v3zZvAsnnB1vfdAuEadNNNwi73ym2d9Wsg== X-Google-Smtp-Source: AGRyM1u20DBzZQRwYeu3MNEdeVgBY5q9LBBYKep839mLynU2OBRfDHwYVekFVzl9a3LbMhMZZ2Cusw== X-Received: by 2002:a05:6830:2909:b0:616:8b6a:67ef with SMTP id z9-20020a056830290900b006168b6a67efmr762481otu.379.1658527942536; Fri, 22 Jul 2022 15:12:22 -0700 (PDT) Original-Received: from AIBRAGIM-M-J8Z8 ([2001:420:c0cc:1003::206]) by smtp.gmail.com with ESMTPSA id t1-20020a0568301e2100b0061caecb2d45sm2490952otr.27.2022.07.22.15.12.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 15:12:22 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=agzam.ibragimov@gmail.com; helo=mail-ot1-x332.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:292486 Archived-At: Stefan Monnier writes: >> How difficult is it to implement a new reader macro for Elisp? >> The one I particularly wish to be ported from Clojure is the "discard >> macro" - `#_`. What it does is that it ignores the next form completely. > > Does `clojure-mode` support that correctly? AFAIK it works very well in clojure-mode. > I don't think this feature pays for itself, personally. Well, to be honest, initially, it does look like a gimmick that doesn't add much value. But once you get used to having it, it really feels nice. > There are plenty of alternative solutions that don't require changing > the syntax of the language. Can you show some examples? I think most of them still require you to change the structure - you either have to wrap the form or prepend every line, etc.