warning: "named capture conflicts a local variable" does not allow loops with named captures
Given the following example:
args =  remaining = 'a,b,c' begin /(?<token>[^,]*),?(?<remaining>.*)/ =~ remaining args << token end until remaining.empty? p args
Gives a warning with -w: test.rb:6: warning: named capture conflicts a local variable - remaining
I'm unsure if the warning is useful here. Reassigning in the loop through the named captures seems clearer than using the regexp globals.