Re: [PATCH] Add .trim method
[email protected] ("jason switzer") Mon, 12 Jan 2009 18:39:41 -0600
| Newsgroups | perl.perl6.language,perl.perl6.internals |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jan 12, 2009 at 6:26 PM, Ovid <[email protected]>wrote: > ----- Original Message ---- > > > From: jason switzer <[email protected]> > > > If we wanted language dependent version, use :leading, :trailing, and > :both. > > That will require each implementation properly handle the language > > variations. > > I think :start and :end are my favorites. Huffman++ (maybe :begin and :end > for consistency?). My best advise is to keep it consistant. .chomp makes references to chomping from the end, not the trailing. .substr makes reference to start. I think that's better to just find terminology that has already been agreed upon and keep abusing it.