Skip to content
Back to formatted view

Raw Message

Message-ID: <8ee66596-5531-2fc4-252f-a2a0946a1d1c@gmail.com>
Date: 2022-02-04T17:33:41Z
From: Duncan Murdoch
Subject: Parser oddity with <- and =

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