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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5195 invoked from network); 23 May 2023 17:11:17 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 May 2023 17:11:17 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1684861877; b=Oovx6PRY9LvyvCog9HxJzmRUMYTET92k4h7nTWy9d6P96Kg2EpEMjL81F46kcVaCaosjNRK2W9 FIQ4kWTm1L2CI8dPAYhQHALxBpEOz3CLh/odRb1itcTW7ahMLpH+8gPDv6W1u8gRMSie8WXIFT NIXJNKuO6tgquttwhmSS1ceWSqiwRW/4AfVbpD06R/kKyhKvTCZ4GhM5jcLsgn4r5vjoPYd7kW 62G28sKxpMuMpabNYR3RyBFccALM49rJbF5pQFcHhsYopMzUQ6yAuVPTjwXHKdrgcoG7Bdh09O V5bNRHHnh36Ym5I3arHvhI99Fqnpk2uxJZBRf5XcA6Sajw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1684861877; bh=cetMdct+ZNCN4hDL7YbkoKbwGSm3wkNpCVw+t1Ec7sY=; 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=VsE/xBnY176mRxrfBb0mKuOOO2Cf3ITK5IjPmL1beuuZ+T7zqJDFgMM1i8zAE6A3j69tRChpdA nMmRoTKuPT/nSWnJ5a4Ff9TUonmYfLteO/kXvfldp/MTho6oNrAHL31EgqL8OMG9sFf+M0MaTS KFMSGsbZT17It7ViRi1G8SHT19MgKv0x8/kwTIdfJYStno2thoA1xIWx4cvDwvDSTfe428Rp/F isK3jIvcan4hDvQm87/cV4/sOcrs5hvSMzL0NPtbJ/0WVIao0UdCLJAc2ZBtS1b4WbwuAl9eu/ sM7Eh7gtR8sivPXspU06COEy/ThNmH9QNOzeh6xt3KaRKw==; 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=pS/KMi16rBMGRP1l5S+6vDSdEg9HVm8AgjUSOmQ6tf0=; b=OTgEzAScczk6WlQeG590ZkerqB EnQxx33X3rQCecHrm8dJ0Xb5ULgGJORTVlaFOFxvKCnEmUfT6zByFlALIyTapFjy1EriYeyFau61H tpy8KoZSOVdZI+ppX0zx7rMeC8LXm9JR32rHsZ2cK+8KnnjgwB9aN3FZVJN6ZGLUZccRQ+n4s9ut4 yU8NQlJIJoDT86uBObd9p7GoZMIcDCjJhM5b/nmb2PfEYY0jOOne5fVoaYZftmTrazInJRedEeeJJ MZ6cxELU3Ub5bt8OUOx4kIHi06SDx0XuxOtbsHYrHlc8yvu7x6i4KcGQ1JaBojat4sFHG7eYRWbN2 lvuVJHjg==; Received: by zero.zsh.org with local id 1q1VXY-0003mu-Vw; Tue, 23 May 2023 17:11:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f44.google.com ([209.85.208.44]:62846) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1q1VXG-0003Sn-MC; Tue, 23 May 2023 17:10:59 +0000 Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-510b56724caso2169856a12.1 for ; Tue, 23 May 2023 10:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20221208.gappssmtp.com; s=20221208; t=1684861858; x=1687453858; 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=pS/KMi16rBMGRP1l5S+6vDSdEg9HVm8AgjUSOmQ6tf0=; b=ZeL0v74iBHPTGIMenaCkxYjuY3eRpfC37PFDkIdVaCTfIxdOka2iOG5CM9V9EE3Dh+ hImcUNFXhVtdcDHFPATgrAjEcKzx6RKf4VPT6IHOBcbNlJt5HBAI94OVmtMd86wrw3wO 7MXsx69J3AaqFYCER6XIHrkOB4mdJEh/p1LarnXItXGQdn+k/2i0LCu6d+NpVolCrTnz etirLNUKN3L1fHHovKeNjOpTBdViaUrwhWCkuV47Biy93aTVZJ8Hvom/e9j6XyHGQJHv iXBkcnEQsxg8nWfAP7mg0UzXlE1WpEWAARoNdzDubqyFx+HuEi1fSb/ltufa3vrGwBBQ hsuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684861858; x=1687453858; 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=pS/KMi16rBMGRP1l5S+6vDSdEg9HVm8AgjUSOmQ6tf0=; b=hv/kShn7LHhy940SC2E/OjTpO0WxvqGRAC9Hg91Ro15hk57hswBgNckM/LyGF6CGYV lYSbg7dwMdErmvFr3GF3UmpOZYC8yqa7pDoDUtZWnN/CM3TZh1ycpx9zj5kTW16J/tRk qpEAzwqbX3mQhSUf1/CRS6to25G2HEodz/dsoIX4utaUUs3/hrCgay6iRKtp9xVGHGud byVcyn2zjqOhTssh+NKQSyyMdzipUJGtadzCtRfK2C06oJW3B6Gpug1T5FLuOuisgjQK sCeJvXQQ3ezajOKb7jBW4Pgu/KgmqNWKtGCawn84NarwOmEX7T7nLEMD9puncqro7T9l kl3Q== X-Gm-Message-State: AC+VfDw44eSDENgo3cxx9uG12sLCqd3b70gAW8LbohMQijOgHG4BPFIg ub8/6EkHQL6ymZ6nChkTVxUbppUdYjceBybAYENSUA== X-Google-Smtp-Source: ACHHUZ7LmUUATVdyZUBsO2gNSd93GR+gMv90cPmJGvdf2qzwhb2GLz0cN/xYlVT/vki/Et8xMQ/EmDru/fXaso8s1wo= X-Received: by 2002:a17:907:1c26:b0:96f:a412:8b03 with SMTP id nc38-20020a1709071c2600b0096fa4128b03mr11152656ejc.5.1684861857906; Tue, 23 May 2023 10:10:57 -0700 (PDT) MIME-Version: 1.0 References: <9849-1684455235.063540@_q24.9gsR.Efjj> In-Reply-To: <9849-1684455235.063540@_q24.9gsR.Efjj> From: Bart Schaefer Date: Tue, 23 May 2023 10:10:46 -0700 Message-ID: Subject: Re: namespaces limitation To: Oliver Kiddle Cc: Zsh workers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51777 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: On Thu, May 18, 2023 at 5:14=E2=80=AFPM Oliver Kiddle wrote: > > I came across the following when using the new namespaces: > > integer .var.d=3D0 > (( .var.d++ )) > zsh: bad floating point constant There are three (mainly) places where I elected not to dive straight in to changing the meaning of "identifier" ... 1) math variables 2) math function names 3) word completions #3 is tricky (as in zle_tricky) because itype_end() is often being used to determine whether a character is valid in an identifier, not whether an entire word is an identifier; it would probably be wrong or break some other constraint to skip across "." in that context. #2 is ... well, function naming in general is a bit hard to deal with. For example, out of math context, you can name a function pretty much anything (using dots, slashes, hyphens, plus signs) but if you want to use the function with the (+CMD) glob qualifier, the name has to be strictly an identifier (alphanum and underscore). #1 (and likely also #2) requires changing the math lexer, which I didn't want to risk breaking until the rest had been thoroughly tested. E.g., -- > And should this be allowed or should it complain about the 3 part not > being an identifier? > > integer .3=3D67 Yes, the first character of a namespace identifier should probably be an alphabetic. Or an underscore? That might really complicate math lexing, given that we allow underscores in numeric constants.