On Tue, 21 Mar 2006 22:09:18 +0900, Robert F.
On 3/21/06, Carlos email@example.com wrote:
Robert F. wrote:
which means that users need to handle the situation differently
depending on when such regexps are used.
While I can see your point, I don’t see it as a POLS violation:
irb(main):014:0> lex = StringScanner.new("")
The termination condition for a scanner is eos, and I would expect that
a terminated lexical scanner should consistently not scan, regardless
whether a given pattern (eg, /\s*/, /\z/, /$/, //) could match at eos.
I do expect a different behaviour between a lexical scanner in the
of its input, and one that reached its termination condition.
However, the StringScanner docs aren’t very explicit about this.
But my POLS might be “wrong”.