From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Sharp-quoting function symbols (Was: Native line numbers landed on master) Date: Sat, 30 Dec 2017 21:09:12 +0000 Message-ID: References: <83k23jl5ra.fsf@gnu.org> <87r2xqo8p7.fsf@lylat> <83lgnxk7v6.fsf@gnu.org> <831spnj6xl.fsf@gnu.org> <83vamyj3bb.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11447f10ca2b390561952971" X-Trace: blaine.gmane.org 1514668111 16271 195.159.176.226 (30 Dec 2017 21:08:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Dec 2017 21:08:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kaushal Modi , Stefan Monnier , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 30 22:08:27 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVOMe-0003Uk-44 for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2017 22:08:20 +0100 Original-Received: from localhost ([::1]:40158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVOOc-0007et-Rs for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2017 16:10:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVONh-0007US-S7 for emacs-devel@gnu.org; Sat, 30 Dec 2017 16:09:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVONg-0001pV-S5 for emacs-devel@gnu.org; Sat, 30 Dec 2017 16:09:25 -0500 Original-Received: from mail-qk0-x22d.google.com ([2607:f8b0:400d:c09::22d]:38608) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eVONf-0001nr-Cj; Sat, 30 Dec 2017 16:09:23 -0500 Original-Received: by mail-qk0-x22d.google.com with SMTP id l19so21953244qke.5; Sat, 30 Dec 2017 13:09:23 -0800 (PST) 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=+S0je6PcRPlnFg97jaAduobVrLkB3M5qkp83bAGV6Ic=; b=YXwFVQO1hn2DQ8C+dDt2NBv/buiz93HCGS6mxR4ZIqrkbyrViruhIaHcVJ/6bZS2g7 f5w2X4ILqH+VtnaIfK6ZSrYP038sDrIvm81EoJ4S8W+kwwl3JvqqcFuxqgRiOPXAR9KI 9WMkOdwsN+asa+GREq5bXddRkelB4e+G351deSxgqb7vF3PUD5JfocIVWvoxZ2BlV4Oy sApL2d7WP4/Z7fuMtYxRMcHx+E4UWpkx9eY49OssxFWC/wgJosQf8jAAj2wY5ol1hjfF ZifSlQfUBCxfwCDL4FF0UgOO1d9O2Pfxbw+QSzCD8qLK2uyYvzRp8n8uVRK49hoHTXFE bAQg== 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=+S0je6PcRPlnFg97jaAduobVrLkB3M5qkp83bAGV6Ic=; b=YRfxXsIRLnipPz294Xyjy4607Rj7Io08TwWuEQSqwWBNny9XseJr0q6OmDBcoMvAdI lHdbfIyZ2kXhHZGhrWQPb+OP5I4tBSWQp0ODi18OUBstPFxp4eh7V2+ra58384ICczQX oS8uu75jSEJDGi9fqwLHNJ0h+SUqGfXTSdykbbMlxlyrGJcOOpuj57bkgmJBrG6nIAeu 0EUls5t4mDhsXqHVeff+XoWNp6UlPzhDcSnoOwH6GTKHigxf6BgVVZmaLUGTxNeZJ6Yo FHlZVA3iYHEeeeDAb4dKNkkSDzvpVE3NrpYqC7zdV/JVosc33VNjupTh8W3PrvGVJCR7 eNUQ== X-Gm-Message-State: AKGB3mICmtP2J71mEUhp4cL1s8DFsBXsynNE+5rFl+qLA27ODzbOJccd xj8ZL9DHhP3qnx3AnogwgYTB+xgj7YOBWD467mc= X-Google-Smtp-Source: ACJfBovEvxM9+YOUCjDz98n2UOkQgGJ1fEajlLtL1wkF2wXuZA12e8ohJSiChrQt8UkFQxcHpU4tuqF3xHe3pkV2Suk= X-Received: by 10.55.20.198 with SMTP id 67mr7118820qku.55.1514668162688; Sat, 30 Dec 2017 13:09:22 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221476 Archived-At: --001a11447f10ca2b390561952971 Content-Type: text/plain; charset="UTF-8" Philipp Stephani schrieb am Sa., 30. Sep. 2017 um 20:36 Uhr: > Kaushal Modi schrieb am Di., 11. Juli 2017 um > 20:23 Uhr: > >> Hello all, >> >> I can speak for myself that I religiously follow the convention to use >> #'SYMBOL instead of 'SYMBOL where SYMBOL is expected to be a function in >> the form where it's used; exactly for the reasons that Stephan mentioned. >> In addition, to the user it becomes evident if that symbol is expected to >> be a function or not. >> >> I use that convention in my emacs config, packages, etc. I have even seen >> that convention in many other packages and configs too, from what I follow >> on emacs.stackexchange, reddit, etc. >> >> This[1] is a very popular post out in the wild, by Artur Malabarba that >> explains why and when one should use sharp-quotes or hash-quotes. >> >> If we are counting votes to add this to the official documentation, my >> vote is in :) >> >> > I, too, agree that sharp-quoting should be an official recommendation. > I've checked some sections of the Lisp manual: while #' is used in many places, it's only described in the context of lambdas. Other sections (such as "Mapping functions") don't use it. Maybe this should be described early on, e.g. in "What is a function" or "Function names". --001a11447f10ca2b390561952971 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Philip= p Stephani <p.stephani2@gmail.c= om> schrieb am Sa., 30. Sep. 2017 um 20:36=C2=A0Uhr:
Kaushal Modi <kaushal.modi@gmail.com> schrieb am Di., 11. Juli 2017 u= m 20:23=C2=A0Uhr:
= Hello all,

I can speak for myself that I religiously fol= low the convention to use #'SYMBOL instead of 'SYMBOL where SYMBOL = is expected to be a function in the form where it's used; exactly for t= he reasons that Stephan mentioned. In addition, to the user it becomes evid= ent if that symbol is expected to be a function or not.

I use that convention in my emacs config, packages, etc. I have even = seen that convention in many other packages and configs too, from what I fo= llow on emacs.stackexchange, reddit, etc.

This[1] = is a very popular post out in the wild, by Artur Malabarba that explains wh= y and when one should use sharp-quotes or hash-quotes.

=
If we are counting votes to add this to the official documentation, my= vote is in :)


I, too, agree that sharp-quoting should b= e an official recommendation.=C2=A0

=
I've checked some sections of the Lisp manual: while #' = is used in many places, it's only described in the context of lambdas. = Other sections (such as "Mapping functions") don't use it. Ma= ybe this should be described early on, e.g. in "What is a function&quo= t; or "Function names".=C2=A0
--001a11447f10ca2b390561952971--