Re: .trim and 'gilding the lilly'

2009-01-26 Thread Aristotle Pagaltzis
* Nicholas Clark n...@ccl4.org [2009-01-24 15:00]: But personally I feel that the added conceptual complexity of having over-ridable regexps, and in particular .ltrim and .rtrim methods with over-ridable regexps is not worth it. Yeah. I have come around to this view as well. In

.trim and 'gilding the lilly'

2009-01-24 Thread Ovid
In chromatic's latest Perl 6 Design Minutes post (http://use.perl.org/~chromatic/journal/38334), he writes Missing a discussion on.trim and gilding the lily. Nicholas: * if I wanted PHP I know where to find it So there's a lot of context missing there and I'm unsure of what this

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Nicholas Clark
On Sat, Jan 24, 2009 at 04:55:44AM -0800, Ovid wrote: In chromatic's latest Perl 6 Design Minutes post (http://use.perl.org/~chromatic/journal/38334), he writes Missing a discussion on.trim and gilding the lily. Nicholas: * if I wanted PHP I know where to find it So

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Ovid
- Original Message From: Nicholas Clark n...@ccl4.org You can also write that as a single substitution, although it turns out the combined statement is slower than the separate ones. That might not matter to you, though. s/^\s+|\s+$//g; If there's one

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Nicholas Clark
On Sat, Jan 24, 2009 at 09:27:04AM -0800, Ovid wrote: You know, I rewrote .trim as: .sub 'trim' :method :multi(_) .local string s s = self s = 'trim_start'(s) s = 'trim_end'(s) .return(s) .end I thought about the performance issue but opted for

Re: .trim and 'gilding the lilly'

2009-01-24 Thread chromatic
On Saturday 24 January 2009 05:56:03 Nicholas Clark wrote: And if left alone I can ramble that much, is anyone surprised that chromatic can't manage to minute several people discussing it? Amusingly, you were the one who didn't minute it; I wasn't on the call that week. -- c

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Nicholas Clark
On Sat, Jan 24, 2009 at 10:58:51AM -0800, chromatic wrote: On Saturday 24 January 2009 05:56:03 Nicholas Clark wrote: And if left alone I can ramble that much, is anyone surprised that chromatic can't manage to minute several people discussing it? Amusingly, you were the one who didn't

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Ovid
- Original Message From: Nicholas Clark n...@ccl4.org I can't keep up with the typing even with my mouth shut. I definitely can't think, talk and type at the same time. For what it's worth, I have trouble doing more than *one* of those at once. In any event, it's nice to get a