From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: But then what are namespaces ? (was: A read-based grep-like for symbols (el-search?) (was Do shorthands break basic tooling (tags, grep, etc)? (was Re: Shorthands have landed on master))) Date: Sat, 2 Oct 2021 16:33:06 +0100 Message-ID: References: <87h7e2xsl5.fsf@gmail.com> <25d8d72022e1ea7ed022@heytings.org> <87fstl7lzw.fsf@web.de> <87a6jt7ilx.fsf@web.de> <87fstlzlaq.fsf@gmail.com> <20211001070242.GC16352@tuxteam.de> <1dd5e2c1f42bce50dc26@heytings.org> <6969a83a74f7bebe69f2@heytings.org> <6969a83a74b57d3d7839@heytings.org> <6969a83a7447c1963410@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28471"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gregory Heytings , tomas@tuxteam.de, Dmitry Gutov , Emacs developers To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 02 17:34:41 2021 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 1mWh28-0007Cz-GO for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Oct 2021 17:34:40 +0200 Original-Received: from localhost ([::1]:37804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWh26-0006mJ-P8 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Oct 2021 11:34:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWh0o-00065D-DB for emacs-devel@gnu.org; Sat, 02 Oct 2021 11:33:18 -0400 Original-Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:43688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWh0m-0000Fc-P5 for emacs-devel@gnu.org; Sat, 02 Oct 2021 11:33:18 -0400 Original-Received: by mail-pg1-x52d.google.com with SMTP id r2so12290545pgl.10 for ; Sat, 02 Oct 2021 08:33:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7n67q+iCetV4WHAmm4NLc1XbHLf3/G2wCTbflP/Mtq0=; b=gWE4tMSADxhLy86Euf4KQOLIJMh9/0392CM8dBoQmJGPtUHDxWt70IpFkKTqq2zNLd oWbyKtOXkSApl1qLQ/u/n8BdvrZvoGkh1I9fE8xd9svZww6J+oxMVEqtzmDeSHOQNjtT KwBPwAhiwpOSCWf7Eq+2p8dKKBspnd1sIoEgKo6LMZ3omdEO2eXz1Ygbg02nnmcN4yhP h2sqi/NPDBCpu6Hrqlawh5X5Pn7ejiUZ/nEqW8hQeHl6MJFphmp1RsEYP3eJSgCFE2wS N7inZfbL8yeBybYKh216i4VqaNR+DM1UiX0+0fBO6L8puqsZbQR21WcshpzLo2rOpGGi FLnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7n67q+iCetV4WHAmm4NLc1XbHLf3/G2wCTbflP/Mtq0=; b=LNiyQvv4NomkP4RK520HQ/um6syaH82wq8jwnw18s6t8eliPYer8nASQVOSLqkkEUe bWAZR5A7axmQYPPK8aSJLsvw4u66pPM3gCTJFcCo1EVKJPpzAe2+55R9pPzU+tXwNhUh /qNdNp7wvkh33pEwKq2xwXxFat+GU4F7fGlRB0gDh81pgm/D6Lenot0ltAB/vvn8zZzd rPZ+Rj/bqpXGjJLuwRHLhYjFOSGYpcVCaCisadIPxJotrMFUyGTjeo3w/GtOq+5BCGLC BwdeOP1QbYMZjyuSXijKA/G1pM/cxvIWU8FmRlGPx8wMWuFSWqvJcBUvKxRKXFYnP3jO Fyng== X-Gm-Message-State: AOAM532cgpdnpKp2+IVnhVhgBAWCCenupocmdCDsgRv6I1xvQ6W1nNLO mkKis7exJfiOVVyrUq217SI1p1rWRFtd9C1GVOc= X-Google-Smtp-Source: ABdhPJxLmbYg5N3V9YLaCCx2FuluRx6m5L0dFw8AfxpUsRuMmY/71woKpgiiwr3wzqDc7heTcd1ZjQ+VuIsWZUM7VS4= X-Received: by 2002:a63:2cce:: with SMTP id s197mr3163336pgs.45.1633188795218; Sat, 02 Oct 2021 08:33:15 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=joaotavora@gmail.com; helo=mail-pg1-x52d.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 autolearn=ham autolearn_force=no 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:276072 Archived-At: On Sat, Oct 2, 2021 at 4:22 PM Stefan Kangas wrote: > This might be a tangent, Yup, but a good question. Changing the subject again. > but can we really say that shorthands > implements namespaces? AFAIU, namespaces means that you restrict the > scope of identifiers (or symbols) so that identically named > identifiers in different scopes don't conflict. But shorthands does > not do that, and would therefore be better described precisely as a > work-around for the lack of namespaces. Or am I missing something? There is no canonical definition, as far as I know. For me "namespaces" are about allowing the same thing to be invoked by different names, depending on context. Take names, names of humans. There is your family namespace, the official state namespace, your gamer/hacker/hobbyist namespace, your high-school nickname namespace. Depending on context, you are known by different names there but you are always you. Your name is a good example. "Stefan" in the context of this thread, means you. In emacs-devel it's not enough, we need your surname. This is the invariant I find in programming language namespaces, of my brief investigation. The Emacs wiki page on namespaces has good humour about this at the top. Jo=C3=A3o