From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: Document that symbol prefix "my-" (or other) should be left for users Date: Mon, 11 Jul 2022 05:20:53 +1000 Message-ID: <874jzo929c.fsf@gmail.com> References: <87let1j6q0.fsf@iki.fi> <7238a127-689b-4f67-9012-62cccc752546@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2950"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.5; emacs 29.0.50 Cc: emacs-devel@gnu.org To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 10 21:51:11 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 1oAcxT-0000ZY-Qt for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Jul 2022 21:51:11 +0200 Original-Received: from localhost ([::1]:50540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAcxS-0005WG-HC for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Jul 2022 15:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAcw5-0004e4-7Z for emacs-devel@gnu.org; Sun, 10 Jul 2022 15:49:45 -0400 Original-Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:38597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAcw1-000563-GG for emacs-devel@gnu.org; Sun, 10 Jul 2022 15:49:42 -0400 Original-Received: by mail-pj1-x102d.google.com with SMTP id 89-20020a17090a09e200b001ef7638e536so6450203pjo.3 for ; Sun, 10 Jul 2022 12:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=i+YikOR3du5FLK5Ch92O8ifAXP1s/BI650D/TDQBpAA=; b=XA18ezKwuR1kklJvjKfL+77+J717ybZK2Dm7n99RUmQ6oRgB7h7EVRnF3TPxu7NLvr S40DFnpiQwcVCqPLIHRfIiOYDwJZTUjHKL9fgl6Y2ASih3AYsj5pulzrV2E+agijhL9J kLaxanGfnHa5QCD5rDGlV4KDTMK30lVhyYZ7m/zEr3mj4QQvOyvfp52ZzhIMucM0u5+y nkOqVzwmW731RAMTQF/sz6wQdkQsOPZGkS4UIn6zBA1qFGa/MLrqMBfBLkj5m34JNFcR oXutlzAMPn/0FU+Y5WPj6LTjcL9tQaa3xcTStJhLeVStm2sqXBhqJsiYoqSO4n2yoBLB Zgnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=i+YikOR3du5FLK5Ch92O8ifAXP1s/BI650D/TDQBpAA=; b=M/QB7/BfNsUYP1tBNz8m5Ua/BOzlX9Xrz2F0oeqUNU5tOD71iGfnLL+9/vr+aXtcsr ZX/GXIBENtHF2+o/jFOHMsSVW1DYjZTp+EPxcz82NyJy8ZvohD8KLbbAJCAQFRNsUl8S xZlKL3L2eJkmKZ5gYQVy7k6lYYtAobdinwLJpcsr0Hij8KJ5F+WNeSH88Ui6bGz1tyVW Yroh2faZbCEIWOhdk4DOWaiFaBvbCculLdANOjo13sdbTAcbnhAlPQxP6XC6ZOnDPJju 80YHeN3gOOY10I1mcoFeI7lVOvf9/89s0qBY22BzHP+4Vi6rlQOfqKEbZw6SDzhLsjdy Sn+Q== X-Gm-Message-State: AJIora+Fff5bIMPsejG9gK0IM0uMl4/ejx3KC2elilZTqiELOdikCVDP /78cloPUf/bVkLpz/YWv1Ft6TQI8oNIgaQ== X-Google-Smtp-Source: AGRyM1tAdy1+dkZ5aXxUSziGsQbxbL3F09C9f8jSFuYHm4ni++jjdaCfI8LfuLVhQycBmUeQIbGltQ== X-Received: by 2002:a17:902:c992:b0:16b:d8b9:1c5f with SMTP id g18-20020a170902c99200b0016bd8b91c5fmr14690263plc.93.1657482579725; Sun, 10 Jul 2022 12:49:39 -0700 (PDT) Original-Received: from dingbat (2001-44b8-31f2-bb00-857f-4de0-ad13-9a7c.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:857f:4de0:ad13:9a7c]) by smtp.gmail.com with ESMTPSA id l8-20020a170902f68800b0016b8b5ef703sm3084700plg.55.2022.07.10.12.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Jul 2022 12:49:39 -0700 (PDT) In-reply-to: <7238a127-689b-4f67-9012-62cccc752546@www.fastmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x102d.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:292036 Archived-At: "Bozhidar Batsov" writes: > Agreed. Not to mention this prefix is not super common - a ton of people user their name, initials, etc. E.g. `boz-my-command`. > Yep, I have used my-command and often tx-command (for my initials x = cross and yes, not great due to tx/rx being often used for send/receive, though never been an issue so far). The other 'convention' I see is my/command or my~command. I do find my/ or tx/ appealing, although I haven't 'switched' to use it. One possible 'nice' advantage of my- would be that if it was flagged as a 'personal' or reserved prefix, borrowing customisations and bits of code from others would potentially be easier to add (but I guess perhaps that is not necessarily a good thing!). I'd love to have real namespace support in elisp. Something like Cl packages or even better, something like Clojure where you can require a package and specify either a prefix alias used to access symbols from the package/namespace or a list of 'refer' symbols which can be accessed without prefix. Anything which could help enable the use of shorter symbol names and eliminate the need to use prefixes to avoid name collision would be great. Of course, on the other hand, with the exception of longer names, in over 25 years of Emacs use and especially since the growth in elisp packages, name collision is something I rarely run into, so the current status quo does at least seem to work and completion mechanisms have evolved to make completing with large numbers of candidates having the same prefix work well and you do tend to get use to the name 'noise'.