From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonas Bernoulli Newsgroups: gmane.emacs.devel Subject: Re: #'quoting functions when they are used as identifiers Date: Tue, 29 Mar 2022 20:26:02 +0200 Message-ID: <87czi4sjid.fsf@bernoul.li> References: <87bkxrh97s.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37647"; 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 Tue Mar 29 20:30:18 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 1nZGbh-0009Z9-Ft for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Mar 2022 20:30:17 +0200 Original-Received: from localhost ([::1]:60922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZGbf-00029I-Pd for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Mar 2022 14:30:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZGXk-0001Mi-1D for emacs-devel@gnu.org; Tue, 29 Mar 2022 14:26:12 -0400 Original-Received: from mail.hostpark.net ([212.243.197.30]:43536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZGXh-0003x7-BK for emacs-devel@gnu.org; Tue, 29 Mar 2022 14:26:11 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 5C353167E8; Tue, 29 Mar 2022 20:26:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received; s=sel2011a; t=1648578364; bh=Yto1hGeURyydFun0tG/tsKKL usUdJjjqWJhllO8/rao=; b=Jx4ts8p0X6SieJKUB7M6qUsWsPAZnCeXrsN04cha h4/6oTPbGOfsToAwEQH7EsmgZai2cwaXlitsqzwdm1RJV93dgvQrGe9flp5JELAu WPoXJvuCeoYyNAqF5gurQkNNeXwqoRQK002DSP6BFX3WeZSeKZJUZJNLRA2XwTnT qIM= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Original-Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id qJeBhL82sqte; Tue, 29 Mar 2022 20:26:04 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 2F3FB16532; Tue, 29 Mar 2022 20:26:04 +0200 (CEST) In-Reply-To: Received-SPF: none client-ip=212.243.197.30; envelope-from=jonas@bernoul.li; helo=mail.hostpark.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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:287566 Archived-At: Stefan Monnier writes: >> I was wondering whether it is wrong per se to function-quote a >> function-bound symbol if it serves as an argument to a function that >> does not actually call the argument as a function but for which it >> would never-the-less be a bug to be passed a symbol that isn't bound >> as a function. > > I think using #' only makes sense at those places where a (lambda ...) > could also be used. > > > Stefan "not completely sure he always follows that rule in practice" Makes sense, thanks. Jonas "who has enough places left where #'should definitely be added"