Re: .trim and 'gilding the lilly'

2009-01-26 Thread Aristotle Pagaltzis
* Nicholas Clark [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 programming, everythi

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Darren Duncan
Ovid wrote: Is there guidance on where to go from here or what the balance is between convenience functions and the bare minimum? Speaking for myself, I know that I would like Perl 6's value transforming/mapping operators to be functions that don't mutate their arguments, or have standard va

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Ovid
- Original Message > From: Nicholas Clark > 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 slightly better

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 d

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 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

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Ovid
- Original Message > From: Nicholas Clark > 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 answ

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

.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 t