Bill Allombert on Thu, 12 Sep 2024 19:53:35 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: Supporting 2u
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 12 Sep 2024 19:53:31 +0200
- Delivery-date: Thu, 12 Sep 2024 19:53:35 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.u-bordeaux.fr; s=2022; t=1726163612; bh=LQpleJIesDOPDjazxBIVCCLbbxSdKWv13cyeEMrwJ1Q=; h=Date:From:To:Subject:References:In-Reply-To:From; b=j/0o2vv2LvmZG//G0t6ypglWDy+wDmNoa8VD2adhb/IwRbB450pJgAJnSKxpyg06a cS8066bdy25w46GQSrmf59NwQkJPzFYtYTdsHY21zxM8YQl3eYgBR1TR81tlMQhPAq 1LWJ6LTMxCQ7kZavf7mTXWN6IcN+MUGksJwntKBNBXENU30K4JvAMKISV6OQFzT6JN zSqXNAMEuDttQnoxw0xSgeDqO8ELTpvgUSWLCCxJONeAVw4uRJmaLg5wOZfJdQw8t1 dbqzOb1Tmkb3lbIC/8Tp/EijPQJuMpu+RG2NwlT/MfzDR/0Vr0+oGraqyE29NEhI4B pAUwZPHbxoj+09VlVHicqPbHyxUd4wGKbshJlKZl44eVu+UNqoMBUOpcOVLXzCj2ki odG93ZojbDOxh1y2uhsZZOp247Mu1V67lqrfHAD264M61nXmLtu5UVarOpobEB9o64 smEBYO7UcYfRHXCmAATBXvwpoacMSjfs4HQ1BVrFlF5K9d1+Z9KnwXX5oP4XBNroJ1 ZIEAbHnYXqiL65MCSg/q9JrTASi+0DvRJ5ChgZWct/oTB/wE/AqQL3wsa2IvNexZ/e hmLFkb3ieFsmHxHF1+3vKUpsN0V3bhI4y1sqYnkqRtC+4JVfjGBhUCMMelzPUHHwxf oN5w4XJLY7DWJ9KzPh/i/is4=
- In-reply-to: <20240912144328.GC2099@cventin.lip.ens-lyon.fr>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <ZrmwRjKBBrZFqTOx@debian.attlocal.net> <02b2f4ec-8b69-4dce-b511-f4fb1ae758fd@isolution.nl> <20240812104846.GH3071@qaa.vinc17.org> <ZuL36V7UjpqHXs5F@debian.attlocal.net> <20240912144328.GC2099@cventin.lip.ens-lyon.fr>
On Thu, Sep 12, 2024 at 04:43:28PM +0200, Vincent Lefevre wrote:
> On 2024-09-12 07:17:13 -0700, Ilya Zakharevich wrote:
> > On Mon, Aug 12, 2024 at 12:48:46PM +0200, Vincent Lefevre wrote:
> > > On 2024-08-12 12:04:36 +0200, Ruud H.G. van Tol wrote:
> > > > > P.S. IMO, 2u should better be parsed (as expected by the user!).
> > > >
> > > > Rather not. For example, 2e1 is already syntax, so can't also mean 2*e1.
> >
> > This does not stop other ambiguous syntaxes — like ++.
>
> AFAIK, it isn't ambiguous in GP/PARI, where "++" always means
> the increment postfix operator, even with a space:
>
> ? x+ +
> %1 = x + 1
>
> (I'm wondering whether this is a bug.)
It is not a bug: all spaces are removed before tokenization.
Cheers,
Bill.