|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] [poll] regex literals |
Date: | Wed, 13 Feb 2008 12:27:31 +0100 |
User-agent: | Thunderbird 2.0.0.9 (Macintosh/20071031) |
It's also slower, which is why as of today 'a.*b' works even without sending #asRegex.Slower because of repeated sends of asRegex?
Yes. Or just because 1 send is already more than 0!
I'd rather see new syntax for compile-time evaluation in literal position, instead of specialised syntax for regex literals. ##('a.*b' asRegex)
A bit verbose but yes, it is a possibility if performance is a concern. And it works now.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |