From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Proper namespaces in Elisp Date: Tue, 5 May 2020 15:07:16 +0100 Message-ID: References: <237fe643-c14d-5406-b35d-a30dcd42c5ed@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="111125"; mail-complaints-to="usenet@ciao.gmane.io" Cc: nic@ferrier.me.uk, =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , emacs-devel , Helmut Eller , Andrea Corallo To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 05 16:08:18 2020 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 1jVyF8-000SmF-GL for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 16:08:18 +0200 Original-Received: from localhost ([::1]:55594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVyF7-0000qL-Ff for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 10:08:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVyEN-0008Qk-1P for emacs-devel@gnu.org; Tue, 05 May 2020 10:07:31 -0400 Original-Received: from mail-io1-xd42.google.com ([2607:f8b0:4864:20::d42]:38933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVyEL-0007Tg-Dv for emacs-devel@gnu.org; Tue, 05 May 2020 10:07:30 -0400 Original-Received: by mail-io1-xd42.google.com with SMTP id w4so2055582ioc.6 for ; Tue, 05 May 2020 07:07:29 -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:content-transfer-encoding; bh=HtaEHu17tC2H5Mm+h3vbnAdfp1Peq6lj/BbkJmZovq4=; b=iq3cgT0ejNiCB9nsWQUqm3wkA5tNsJez1X+cQz50SMDaIsYK6stynOkDsBPxiSkTOA KvSeu3A+YW82OPx2+//DN0i9JklNOqBlQ7K0ZMZxgNjQtyPiJnLpPVxOvhb2OU4rbEdl CoX7Q3Ffg2+GJjL5OegJkqLYKVk09hVDD/6r7PjFefl+uXmTElf8xbjUyC9e5LeU+e4t XzqOROgRVkktCY4JzFqBs1Uq62UdioJOv72UHte4LPZrcY8sr0j0IMkpfUl90tdFuaxi Qbv0TFd+RdkdNiyA3XIVXmhqUqPnEYtdWqy6MY+9ra96YJ02LdPXETwFbps0BTdI4mLn 5xgQ== 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:content-transfer-encoding; bh=HtaEHu17tC2H5Mm+h3vbnAdfp1Peq6lj/BbkJmZovq4=; b=EvK3lR+jXIcItEMeEpzXKhK8c/FnN+6/hZnekhBqVJ9f2zTH/QVy5NKOXbE07XRceB kXB4A5GCAMFQLOuokhyFmpjVhYDzuNavGKRjWgq2D3Pr/6AFjQO1uEoa0ViyQuryEE3S j29rfJzPLs8tVq8/zDmOcbB500jWqLCALbG3R8IiPfPRk/nEK1GYHB3mIgiXSdEudB1t NHQg/pXIZ7tP3nGevtb2aqCFqWCU9M3mHGftCVxkRRFg23+U7MFUn+VJeSOZnVP3rCh0 nXTnoqOITNynAN0qp8/2AjZikBbjKlV8j8H6+TB3BYU5nHVvTXlzr36IWUev2CDNtnRG Ss1w== X-Gm-Message-State: AGi0PuY9oL0Dc+4KvcQLMTOsfg3SX9ultQNQj9KspLiI+RtKW/Q0Q+RY pFgFHkLpihsRnx9GiegcNi4RjjZ0JF775wXE8aY= X-Google-Smtp-Source: APiQypLTERNPc9shnb+lDKLE64J319qM390efUTInA0b/X9q9dFkmYlR6yrJXVeubkrVZUm3ljs6qDJyP8O/BjHpn9E= X-Received: by 2002:a6b:6a13:: with SMTP id x19mr3455542iog.175.1588687648314; Tue, 05 May 2020 07:07:28 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::d42; envelope-from=joaotavora@gmail.com; helo=mail-io1-xd42.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:248989 Archived-At: On Tue, May 5, 2020 at 2:45 PM Stefan Monnier wr= ote: > While I largely agree that working at the level of symbols is not fully > satisfactory, I don't think it deserves to be called "bad design". > > If you work at the level of bindings only you will have trouble with all > the uses of symbols that are expected to be namespaced but appear quoted > in code (e.g. face names, variable and function names inside macros, > hooks, args to `add-to-list`, command names passed to `define-key`, > command names within menus, ...). Sure, there's that. A symbol can have many types of meaning attached, not just "variable" and "function". This is a wonderful thing IMO, a transparent Singleton pattern (avant la lettre btw) We already do that in symbol plists in Elisp. But, yes, no namespacing. That sucks. > It's just a hard problem with no perfect solution, AFAIK. What's your take on "why CL packages are bad", Stefan? Jo=C3=A3o