Re: RFC: String::Smart

2007-10-14 Thread Andy Armstrong
On 13 Oct 2007, at 22:52, Bill Ward wrote: CGI.pm has code to do URI and HTML escaping. DBI/DBD modules take care of SQL escaping. Any other type of escaping is probably already taken care of by some other module for that application. Now, if your module just acts as a sort of clearing house

Re: RFC: String::Smart

2007-10-13 Thread josh
On Sat, Oct 13, 2007 at 11:18:44AM +0100, Andy Armstrong wrote: } On 12 Oct 2007, at 17:59, Darren Chamberlain wrote: } I'm not sure how to do this without adding it to the core or using a } source filter. } } Does constant overloading allow you to see the string early enough? You see the string

Re: RFC: String::Smart

2007-10-13 Thread Andy Armstrong
On 13 Oct 2007, at 21:21, josh wrote: You see the string at compile-time. If you wish to extend the effect into runtime then your result is an object which further propagates the effect until stringify is called. Regexp::NamedCaptures uses both of these techniques. Mmmm. That's fun, thanks.

Re: RFC: String::Smart

2007-10-13 Thread Bill Ward
On 10/10/07, Andy Armstrong [EMAIL PROTECTED] wrote: Here's something I've been mulling for probably about eight years without doing anything about it. Particularly in web applications - but in other areas too - people regularly make a complete mess of escaping / unescaping strings. [...]

Re: RFC: String::Smart

2007-10-11 Thread A. Pagaltzis
* Andy Armstrong [EMAIL PROTECTED] [2007-10-10 22:45]: Nice email address. :-P This evening I started playing with String::Smart (the name is as provisional as everything else). Something with “language”, “type”, “quoting” or “escaping” would be more appropriate I think. In general a

Re: RFC: String::Smart

2007-10-11 Thread Andy Armstrong
On 11 Oct 2007, at 11:46, A. Pagaltzis wrote: * Andy Armstrong [EMAIL PROTECTED] [2007-10-10 22:45]: Nice email address. :-P It had to be done :) This evening I started playing with String::Smart (the name is as provisional as everything else). Something with “language”, “type”, “quoting”

RFC: String::Smart

2007-10-11 Thread Andy Armstrong
Here's something I've been mulling for probably about eight years without doing anything about it. Particularly in web applications - but in other areas too - people regularly make a complete mess of escaping / unescaping strings. At different times a string may need to be * unescaped

RFC: String::Smart

2007-10-10 Thread Andy Armstrong
Here's something I've been mulling for probably about eight years without doing anything about it. Particularly in web applications - but in other areas too - people regularly make a complete mess of escaping / unescaping strings. At different times a string may need to be * unescaped

Re: RFC: String::Smart

2007-10-10 Thread josh
On Wed, Oct 10, 2007 at 09:41:21PM +0100, Andy Armstrong wrote: } Here's something I've been mulling for probably about eight years } without doing anything about it. You should look at Mark P Sullivan's lightning talk on this at YAPC::NA 2007.