From murdoch@dunc@n @end|ng |rom gm@||@com  Fri Feb  4 18:33:41 2022
From: murdoch@dunc@n @end|ng |rom gm@||@com (Duncan Murdoch)
Date: Fri, 4 Feb 2022 12:33:41 -0500
Subject: [Rd] Parser oddity with <- and =
Message-ID: <8ee66596-5531-2fc4-252f-a2a0946a1d1c@gmail.com>

Here's an odd parse:

    a <- b = 1

This appears to be parsed as

    `<-<-`(a, b, 1)

instead of being equivalent to

    a <- b <- 1

I wonder if that's intentional?

(This showed up at https://stackoverflow.com/q/70989067/2554330, where 
it caused a lot of confusion.  I think the original intent was that `a` 
would be a macro holding `b = 1`, but I'm not sure of that.)

Duncan Murdoch



[Rd] Parser oddity with <- and =
Duncan Murdoch