From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Sharp-quoting function symbols (Was: Native line numbers landed on master) Date: Tue, 11 Jul 2017 18:18:40 +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="f403045ecf1240580405540ebba1" X-Trace: blaine.gmane.org 1499797444 17413 195.159.176.226 (11 Jul 2017 18:24:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Jul 2017 18:24:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 11 20:23:59 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 1dUzpD-00044F-59 for ged-emacs-devel@m.gmane.org; Tue, 11 Jul 2017 20:23:55 +0200 Original-Received: from localhost ([::1]:48222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUzpH-0000ny-00 for ged-emacs-devel@m.gmane.org; Tue, 11 Jul 2017 14:23:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUzkN-0006Q3-Rt for emacs-devel@gnu.org; Tue, 11 Jul 2017 14:18:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUzkM-0007WS-OU for emacs-devel@gnu.org; Tue, 11 Jul 2017 14:18:55 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:36278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUzkK-0007VS-Sj; Tue, 11 Jul 2017 14:18:53 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id h22so67453lfk.3; Tue, 11 Jul 2017 11:18:52 -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=XZv5pQ9niPNXwyMNRFan0UBB1Bg6N58Jcz4QLQgdy8c=; b=rIwsQBphv3U9uUzZvNrbtDp8MbgswsfBgsglH4yIcUx6WO9e0rtFPw52VLnOV2ztIi mkzcFKUGLcqRwlYqLahUpTNoyIqyRA8M/jG2SwZZ9UsX+u4FyzRt4ARCpBa0J4KDlsIY 47kV5dqQrwcIU+4kiBKf9zZkWaQsd8YpD5PPbnRrF+N0sGgsXKob56PBetDFMZiwXo5G oe68k7UftPwwL1YYn7u5yFIJu+8ExsjNvfk+JrAoWQY83DL/Ewg4OOZsL9zTh6qqfWE6 SO66hDWAjD6EtNDHDUUW7csnjYY6UOwH32EXv9MJ7PMyGY/fibK8OxCqr4o9cfIPeiyM AZ8g== 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=XZv5pQ9niPNXwyMNRFan0UBB1Bg6N58Jcz4QLQgdy8c=; b=PfpxExmsAzQsWiupBtop6fI5xeAhP7QF5yYaawi3OtJORfQz/7YufFVlhai70YNJUh NXfEczJLb+PsPtURlwkFlNlBpCB4qDDaw3k9KpLr4i4eOse7zD5EyMDghWc5L5hkV/5Z UxTO8N5mG0OdNVBe8xx34n4799xTWGzDSB/btNBLYxGwvEiL4gLwM34KkkLK9sEgFe79 kgMLX5MreLyrJMGOUJcqssXMBsowHhQ/pUL9TzrP/a2YJLtjMZz+Dw8f+6xCcPFQmioC 3rrnhSLIvDLjQVR351YXX5uZTAF3PkfjzfiZ/JrDQow3Jjyugrv31Nx90qaQ8Jjhbh5K UokQ== X-Gm-Message-State: AIVw112gEI9LFq8af9FlE/6TWUlu3+49YYNSMUM1DZJ5L/bjcfsbxqCC DfBIzndVsz9YY0Oj7TyAzuAhWsJzAA== X-Received: by 10.46.74.25 with SMTP id x25mr473483lja.74.1499797131382; Tue, 11 Jul 2017 11:18:51 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::230 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:216498 Archived-At: --f403045ecf1240580405540ebba1 Content-Type: text/plain; charset="UTF-8" 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 :) [1]: http://endlessparentheses.com/get-in-the-habit-of-using-sharp-quote.html On Tue, Jul 11, 2017 at 1:48 PM Stefan Monnier wrote: > > As long as we (or, rather, you) tell others to prefer that style, it's > > not way down the list. > > I didn't tell anyone to prefer that style, actually (or at least, > I tried to write it such that it doesn't say that, maybe I failed). > I just wanted to point out that recentish changes make the difference > between 'foo and #'foo slightly more visible and as a result you might > like to reconsider your recommendation to strip the #. You might still > decide that the # is too ugly to keep it where it's not > absolutely needed. > -- Kaushal Modi --f403045ecf1240580405540ebba1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

I can speak for myself that = I religiously follow the convention to use #'SYMBOL instead of 'SYM= BOL where SYMBOL is expected to be a function in the form where it's us= ed; exactly for the reasons that Stephan mentioned. In addition, to the use= r 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 to= o, 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 :)

[1]:=C2=A0http://endlessparentheses.com/get-in-the-habit-of-using-sharp-quote.html=

On Tue, Jul 11, 201= 7 at 1:48 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> As long as we (or, rather, you) tell others to prefer that style= , it's
> not way down the list.

I didn't tell anyone to prefer that style, actually (or at least,
I tried to write it such that it doesn't say that, maybe I failed).
I just wanted to point out that recentish changes make the difference
between 'foo and #'foo slightly more visible and as a result you mi= ght
like to reconsider your recommendation to strip the #.=C2=A0 You might stil= l
decide that the # is too ugly to keep it where it's not
absolutely needed.
--

Kaushal = Modi

--f403045ecf1240580405540ebba1--