help-smalltalk
[Top][All Lists]
Advanced

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

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


From: Tony Garnock-Jones
Subject: Re: [Help-smalltalk] [poll] regex literals
Date: Wed, 13 Feb 2008 11:20:30 +0000
User-agent: Thunderbird 1.5.0.14 (X11/20071210)

Paolo Bonzini wrote:
> It's also slower, which is why as of today 'a.*b' works even without
> sending #asRegex.

Slower because of repeated sends of asRegex?

I'd rather see new syntax for compile-time evaluation in literal
position, instead of specialised syntax for regex literals.

##('a.*b' asRegex)

> However, *always* treating string literals as regexes is going to give
> problems in the long term.

Agreed. Type-punning is often not a great idea.

Regards,
  Tony





reply via email to

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