[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [poll] regex literals

From: Paolo Bonzini
Subject: Re: [Help-smalltalk] [poll] regex literals
Date: Wed, 13 Feb 2008 12:27:31 +0100
User-agent: Thunderbird (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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]