3 ms·
You mean, is real-world code likely to contain a regular expression with a # character, or a comment with a / character following code with a / character? Not
by mbrubeck 17y ago
You mean, is real-world code likely to contain a regular expression with a # character, or a comment with a / character following code with a / character? Not all the time, but it doesn't seem terribly outlandish.
- tedunangst 17y agoI think a regex with # in it is common enough, but passed to a one-arg function? And followed on the same line by another statement? No. The example takes several things that could be individually probable and packs them into a single rather unlikely line.