3 ms·
> which may or may not be what you expect I find it hard to imagine any other expectation passing the rubber duck test. "Oh, so you expected the match to alwa
by Dylan16807 3y ago
> which may or may not be what you expect
I find it hard to imagine any other expectation passing the rubber duck test.
"Oh, so you expected the match to always fail, no matter what the string was?"
- denzquix 3y agoWell, it's not a completely outlandish scenario that the value of `init` might come from a variable that is sometimes at the start of the string and sometimes not, and a newcomer might expect `^` to only match when it is. Don't get me wrong, it's certainly far more useful as it is, I'm glad it works this way.