prism icon indicating copy to clipboard operation
prism copied to clipboard

Prism accepts MultiWrite and Splat assign where Ruby rejects

Open tompng opened this issue 2 years ago • 0 comments

MultiWrite or Splat assign like this

a = *b
(*) = a
*a = b

are accepted in these places in Prism, but Ruby rejects it.

+ a = *b
f b = *c
f((*) = a)
f[a = *b]
[a = *b]
a = *b = *c
* = (*) = *a
f(**a = *b)
f(*a = *b)
.. a = *b
a = *b in c
f (*)=key => (*)=value
{ key: (*)=value }
{ (*)=key => (*)=value }

tompng avatar Dec 07 '23 18:12 tompng