It's not clear to me whether \k followed by something other than <foo> should be an error in a RegExp with a named group, although I think it probably should.
I like this option, and it got the agreement of the committee. I'd merge a PR which said, this is actually what we're doing, if you feel like writing it up.
As mentioned today.
It's not clear to me whether
\k
followed by something other than<foo>
should be an error in a RegExp with a named group, although I think it probably should.