[ruby-core:127538] [Ruby Misc#22556] Clarify `&&=` and `||=` on multi-line
Issue #22556 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Misc #22556: Clarify `&&=` and `||=` on multi-line https://bugs.ruby-lang.org/issues/22556 * Author: kddnewton (Kevin Newton) * Status: Open ---------------------------------------- parse.y seems to accept &&= and ||= in the same new position that && and || are accepted, as in: ```ruby a &&= 1 ``` but prism does not accept this because I thought that behavior was only meant for && and ||. I need clarification on that for prism. -- https://bugs.ruby-lang.org/
Issue #22556 has been updated by nobu (Nobuyoshi Nakada). Tracker changed from Misc to Bug Backport set to 3.3: DONTNEED, 3.4: DONTNEED, 4.0: REQUIRED I, too, agree that this should not be allowed. At the very least, it falls outside the scope of the original proposal. ---------------------------------------- Bug #22556: Clarify `&&=` and `||=` on multi-line https://bugs.ruby-lang.org/issues/22556#change-120023 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.3: DONTNEED, 3.4: DONTNEED, 4.0: REQUIRED ---------------------------------------- parse.y seems to accept &&= and ||= in the same new position that && and || are accepted, as in: ```ruby a &&= 1 ``` but prism does not accept this because I thought that behavior was only meant for && and ||. I need clarification on that for prism. -- https://bugs.ruby-lang.org/
Issue #22556 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.3: DONTNEED, 3.4: DONTNEED, 4.0: REQUIRED to 3.3: DONTNEED, 3.4: DONTNEED, 4.0: DONE ruby_4_0 commit:c0fb0380e3ec58cb920d7a94eacc667aaccb41e7 merged revision(s) commit:49d58b794b90ee9f7ba3bc1038d2b16e20cbaa13. ---------------------------------------- Bug #22556: Clarify `&&=` and `||=` on multi-line https://bugs.ruby-lang.org/issues/22556#change-120115 * Author: kddnewton (Kevin Newton) * Status: Closed * Backport: 3.3: DONTNEED, 3.4: DONTNEED, 4.0: DONE ---------------------------------------- parse.y seems to accept &&= and ||= in the same new position that && and || are accepted, as in: ```ruby a &&= 1 ``` but prism does not accept this because I thought that behavior was only meant for && and ||. I need clarification on that for prism. -- https://bugs.ruby-lang.org/
participants (3)
-
k0kubun (Takashi Kokubun) -
kddnewton (Kevin Newton) -
nobu (Nobuyoshi Nakada)