20:47
<bakkot_>
ljharb / bterlson / whoever else is championing pattern matching: https://www.python.org/dev/peps/pep-0622/
20:52
<ljharb>
bakkot_: thanks, devsnek pinged me about it last week and it's mentioned in an issue on the repo already :-) i'll add it to the readme at some point
20:52
<bakkot_>
ah, good good
20:53
<devsnek>
just copy paste it into the spec text proposal done ez
20:53
<devsnek>
(/s)
20:56
<rkirsling>
> Created: 23-Jun-2020
20:56
<rkirsling>
wao
21:12
<rickbutton>
:%s/Python/ECMAScript/g problem solved
21:17
<rkirsling>
oughtta call ECMAScript proposals ESPs since they're like peeking into the future
21:17
<rkirsling>
oops not tdz
22:11
<devsnek>
is this valid `/(?<foo>.)[\k]\k<foo>/`
22:11
<devsnek>
https://github.com/acornjs/acorn/issues/927
22:25
<bakkot_>
devsnek: https://github.com/tc39/ecma262/issues/2037
22:25
<bakkot_>
tl;dr is no per spec, yes per the shipping implementations
22:30
<devsnek>
neat
22:30
<devsnek>
i don't even know what \k does
22:31
<devsnek>
oh wow \k is cool
22:41
<rkirsling>
I think you mean it's "kool" 😎
23:02
<TabAtkins>
Oh phew, the intention of that regex is to match any char, then a "\" or "k", then the first character again?
23:07
<rkirsling>
but \ inside [] needs escaping, right?
23:07
<rkirsling>
so [\k] would at best be [k], no?
23:07
<rkirsling>
yeah https://github.com/tc39/ecma262/issues/2037#issuecomment-641602774
23:08
<bakkot_>
I don't think that regex can be said to have an intention behind it
23:08
<bakkot_>
except to exercise an edge case