From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32097 invoked from network); 12 Mar 2023 16:46:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Mar 2023 16:46:54 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1678639614; b=qLiHVVN8Yh0kFtiowUhluW2iwO3uCb+AJXLDkhV8iSNOgz/rQcdFZQLoYqnq9DKkQtCqrNDQlt jSsKK3QUHE0OaA/g3L5zEiPOX4HE8M7YHV+nPzXuDYnY+Ljx1vcN1f07gE+8OkfCvVSHkaoNdd XktWdr7T8Rb8UjhTjxfTJboyGxbNM/BtliCYZ2LJiCI/LnUJ7KBnXBiAnErSgOBKhTJlbExgY6 eeGKxhE/P+asVRDhPVMNYe0YbfnQXChWsqrTBTWy2sIUXNnvnT7Kv40pFktFBZJeuiHMYVr9iO OOmnzrrID/gxMU8DSAX5SdG16s9KCC8LBlz6DyNARbQiiQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f44.google.com) smtp.remote-ip=209.85.167.44; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1678639614; bh=L1SoqUXaZEYuXj451Qpsw2GamE4Gl/b/FjMKwqx6VCQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=WgavHCWnErKNR5iCVhDB16iPadhFPqcEs9jLzqQWIPSNPW0R0CnLEFa1NehterBm9hFnkTYa8b B0e7Di2PSaP5XcUJmXH7szKA06fPzprzjfA6oCMvQAy63bAwqUxhSZ9G91s4MrHp9m9WxQswGI RsrCYEub501i4AFOt+LdeEYKGbINRSMnyrjR+V05ZOnXy0hMPPOpYjtjNvNCCKx8kr2QsJsv3q RnMxxFApNCSDMACyjtlHT03Birx/MSyHqfXmXKM6NMYZvujK8WLC02Gwm3ylXO6618dUwuTxN0 2+9mugj28qtF+1CAhHbC9jpE+G47jAgdpihLf6oezuOxuQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=L1SoqUXaZEYuXj451Qpsw2GamE4Gl/b/FjMKwqx6VCQ=; b=N6sx07uWI0Chx3/QtxnA56TJKJ f0jMszCzXM+gTLM9Ius9sRTDL+qKRHZ9YRqg+zbO5y9qVZWlIFLOVzgkjIAA3wwClceuKE+cUnzOG Yf71a1CGAdCkKapUlgF6WVuWhxzI9bIusfz2GlLY7q2uBc/YgDD15Q0vFgQjdXVlWZtBRFjYkTmJe LMGJPGdYFNR2nY4u5uYJiNvJe0NDhwFiQElvZ/J83TzYrc/NFiErLy23GBZI+KDkbc4BRygv+E0E2 i7x4VewlWIJvIE0h7GcInK97Fpyjbnx13LuS6I6e/yZtLXGgO73kF3GbqTO7gLOInGKCunmj0zGtw jR7cscfA==; Received: by zero.zsh.org with local id 1pbOqU-000Li2-Er; Sun, 12 Mar 2023 16:46:54 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f44.google.com) smtp.remote-ip=209.85.167.44; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f44.google.com ([209.85.167.44]:37823) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pbOqD-000LPz-IW; Sun, 12 Mar 2023 16:46:38 +0000 Received: by mail-lf1-f44.google.com with SMTP id g17so12842709lfv.4 for ; Sun, 12 Mar 2023 09:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678639596; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=L1SoqUXaZEYuXj451Qpsw2GamE4Gl/b/FjMKwqx6VCQ=; b=JG8wTRIOIIQZh5QzKCkDfz2ATQAQa5+lLlpDP9TN1FjTC3uFOF4URH0/WL/lCze3fF uu9TEDA1tilplj0xnovDC/s8lL5Mrwt3165fPT6QgVTcPLOacD/uWPR9VrYuKbpypkXT m0yxr/WhO68cRbrdsmf/kPmPGMjNS1cuO1+gFrYlRXCaHwKbgdWm/XYyHMgmyQ5VECLE hqV/1ab0sibIqrBCHGE9H/9ElDEYVrfnCQVi4XEpjYIcaylbh8oEg1ng8nwiyhW2I3c9 uIbv/GaKGvd4ia5rnLTER8tVTyzvNtfxKuyn9lcszOepX6f1tgW3Lko5w0KVD+cQANPy kFfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678639596; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L1SoqUXaZEYuXj451Qpsw2GamE4Gl/b/FjMKwqx6VCQ=; b=Ey1Bdpsdx6pspifmF7uxvmBdgk+enkfbNkGIlQ3EAX5Y9lFbopLEC3THw7JbDfdDzv TqJrJgRZPiqwB74L0cXHF4120TuTUL3uCc+ulAdK17B00cI7b0E6Q3vMX+wF5pIXO7TJ FKm4iJLg/femMEw5WHbPlAnn40TcOh4ZGH1NP0fZcfkIBD/OUq5anuGtMBnbVSPcsZ3a pHeooWf10ZDgk1illYzYkPnaxo3zV1DylKFajvB7CWk64x6wmYNQ4rkmuZu8kge2+wVI wTuEHwwnN4nk7hLO1ogiwzpTTN1cy+Ir7PHrV48dLOTg3BruIOZSO9dn8ubpSDXArY0q nh4w== X-Gm-Message-State: AO0yUKXUogLYuenrFryssp13qKoLZlXrHVyhmSbyGIYCvHPrInunHeTj lkuLV7SeOeUa0LWK7asdaT9xgcQGBh97R7YQpAm/qqbJ X-Google-Smtp-Source: AK7set+oSKHkPJzv5u89syONdrSLqAhlFy1q2WgPzvu+uhDVRg6JFVuRd+frZ7eivBp8QSJgCcF8UN2Mgd1R0Rmqp34= X-Received: by 2002:a05:6512:2386:b0:4e8:3ee1:db14 with SMTP id c6-20020a056512238600b004e83ee1db14mr1631585lfv.6.1678639596438; Sun, 12 Mar 2023 09:46:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Sun, 12 Mar 2023 16:46:09 +0000 Message-ID: Subject: Re: Reserved namespaces To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51564 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: Will be creating own namespaces allowed? It would be good, for example, to create `my_plugin` namespace, instead of hash (typeset -gA MyPlugin, e.g.), to store plugin's state. It would also serve as a quite good poor man's nested vars. On Sun, 12 Mar 2023 at 09:24, Sebastian Gniazdowski wrote: > > yes, nice. I would go for zle.CURSOR, it's looking worse than zle.cursor, > however it follows upcase=E2=86=94scalar convention. > > > On Sat, 11 Mar 2023 at 19:47, Bart Schaefer w= rote: > > > > On Sat, Mar 11, 2023 at 2:01=E2=80=AFAM Sebastian Gniazdowski > > wrote: > > > > > > I'm not fully following, but is this about adding namespace.* > > > prefixes? Like zle.CURSOR, for example? > > > > Yes, though it would be ".zle.CURSOR" or possibly just ".zle.cursor" > > since we'd no longer have to worry as much about name collisions with > > users' variables. > > > > -- > Best regards, > Sebastian Gniazdowski --=20 Best regards, Sebastian Gniazdowski