Re: RFD: Built-in testing

2009-01-24 Thread Ovid
- Original Message > From: jerry gay > i don't understand the drive to have unique test identifiers. we don't > have unique identifiers for every code statement, or every bit of > documentation. why are tests so important/special/different that each > warrants a unique id? Actually,

Re: RFD: Built-in testing

2009-01-24 Thread Will Coleda
On Fri, Jan 23, 2009 at 4:08 PM, jerry gay wrote: > On Fri, Jan 23, 2009 at 12:37, Dave Whipp wrote: >> I could also imagine writing code that reads from an Sqlite database, and >> imposes that info onto the test. Whatever mechanism is used, I think we need >> a language-defined mechanism to supp

The strings branch

2009-01-24 Thread Simon Cozens
Hello all, As you probably know by now, I'm really fired up about making sure that Parrot's string handling works well and supports a good range of character sets and encodings. To this end, I sketched out PDD28 with Allison and a cast of hundreds, and now I'm working on implementing it.

[perl #62682] Anomolous match behaviour using $_

2009-01-24 Thread via RT
# New Ticket Created by Richard Hainsworth # Please include the string: [perl #62682] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62682 > $perl6 > $_ = 'abc'; m/(a)/ and say "matched $0" Use of uninitialized value match

.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

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

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

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

r25017 - docs/Perl6/Spec

2009-01-24 Thread pugs-commits
Author: masak Date: 2009-01-24 22:17:56 +0100 (Sat, 24 Jan 2009) New Revision: 25017 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] documented .i method in Num Modified: docs/Perl6/Spec/S29-functions.pod === --- docs/Perl

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: RFD: Built-in testing

2009-01-24 Thread dpuu
On Jan 23, 8:59 pm, jswit...@gmail.com (Jason Switzer) wrote: > That sounds useful on the surface but often turns out to be more difficult > to do than you might think. There are many cases where tests are performed > from within loops. Something like S09.237 may or may not be in a loop, may > be