Extended Regexs

2000-08-18 Thread Richard Proctor
pattern as part of many regexs this is not easy. (The keyword there is PART). * Using the pattern returned from some function as part of a regex * Using an array of "words" as an alternate list as part of a regex * Fill your idea in here [ ] Richard Proctor [ Years

Re: Extended Regexs

2000-08-19 Thread Richard Proctor
On Fri 18 Aug, Damian Conway wrote: >> All of these can be done today but are not necessarily "easy". >> > > /\A(?s:(?!and).)*\Z/ > > /pattern returned from ${\some_function} as part of a regex/ > > /match any of (${\join'|',@list}) here/ > I am not saying these things can't be done,

Re: RFC 111 (v1) Whitespace and Here Docs

2000-08-25 Thread Richard Proctor
On Fri 25 Aug, Nathan Wiger wrote: > > I was sorta going under the assumption that <<< would cause leading and > > trailing whitespace to be ignored (not stripped) when looking for the > > end-of-here-doc indicator. Because whitespace is ignored, I was then > > proposing some new syntax for strip

Re: RFC 111 (v2) Here Docs Terminators (Was Whitespace and Here Docs)

2000-08-28 Thread Richard Proctor
On Mon 28 Aug, Eric Roode wrote: > Richard Proctor proposed: > > > > All of these should work: > > > > print < >EOL > > print << EOL; > > EOL > > print < >EOL # this is the end of the here doc > >

Re: RFC 111 (v2) Here Docs Terminators (Was Whitespace and Here Docs)

2000-08-28 Thread Richard Proctor
On Mon 28 Aug, Bart Lateur wrote: > On Mon, 28 Aug 2000 10:38:42 -0400 (EDT), Eric Roode wrote: > > >People may throw rocks at me for this, but I'd like to suggest that > >not only is a comment allowed on the terminator line, but a semicolon > >also be allowed. Vis: > > > >print < >EOL;

Re: RFC 162 (v1) Filtering Here Docs

2000-08-28 Thread Richard Proctor
On Mon 28 Aug, Bart Lateur wrote: > On 27 Aug 2000 19:23:51 -, Perl6 RFC Librarian wrote: > > >It only removes whitespace, > >and it measures whitespace with tabs=8. > > My editor is set to tabs=4. Perl's interpretation wouldn't agree with > the visual appearance in my editor. This doesn't s

Re: RFC 195 (v1) Retire chop().

2000-09-08 Thread Richard Proctor
On Fri 08 Sep, Eric Roode wrote: > Does anyone EVER use chomp() except shortly after reading a line > of input from a stream? No? > Yes > Perhaps $/ and $\ should become per-filehandle variables, and > there should be some way to set autochomp-on-read per filehandle, > and auto-newline-on-out

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Richard Proctor
) It needs to match (.*)<<((["'`])(\w+)\2)|(\w+))(.*) or something like that. Richard Proctor

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Richard Proctor
In Michael Schwerns prototype, expansion to treat both semicolons and comments at the end tag is possible by changing /^(\s*)$curr_tag\s*$/ to /^(\s*)$curr_tag\s*(;\s*)?(#.*)?$/ Richard

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Richard Proctor
This whole debate has got silly. RFC 111 V1 covered both the whitespace on the terminator and the indenting - there was a lot of debate that this was two things - more were in favour of the terminator and there was more debate on the indenting. Therefore I split this into two RFCs leaving RFC111

RFC 111

2000-09-14 Thread Richard Proctor
This whole debate has got silly. RFC 111 V1 covered both the whitespace on the terminator and the indenting - there was a lot of debate that this was two things - more were in favour of the terminator and there was more debate on the indenting. Therefore I split this into two RFCs leaving RFC111

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-15 Thread Richard Proctor
On Fri 15 Sep, Nathan Wiger wrote: > Michael G Schwern wrote: > > So indenting the terminator and indenting the text are linked. If you > > do one, you want to do the other. > > As I and many others have said, that's not necessarily true. I like all > my code to line up, braces, parens, and all.

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-15 Thread Richard Proctor
On Fri 15 Sep, Michael G Schwern wrote: > On Fri, Sep 15, 2000 at 06:38:37PM +0100, Richard Proctor wrote: > > 1) << removes whitespace equivalent to the terminator (e) this is largely > > backward complatible as many existing heredocs are unlikely to have white > >

Re: RFC 283 (v1) C in array context should return a histogram

2000-09-25 Thread Richard Proctor
Simon, > This has been on the Perl 5 to-do list for ages and ages. The idea is > that when you're transliterating a bunch of things, you want to know > how many of each of them matched in your original string. While this may be a fun thing to do - why? what is the application? Richard

Re: RFC 283 (v1) C in array context should return a histogram

2000-09-25 Thread Richard Proctor
Simon, > I think I said in the RFC, didn't I? It's extending the counting use of tr/// > to allow you to count several different letters at once. For instance, letter > frequencies in text is an important metric for linguists, codebreakers and > others; think about how you'd get letter frequenc

Re: RFC 288 (v1) First-Class CGI Support

2000-09-25 Thread Richard Proctor
On Mon 25 Sep, Perl6 RFC Librarian wrote: > This and other RFCs are available on the web at > http://dev.perl.org/rfc/ > > =head1 TITLE > > First-Class CGI Support > > Maintainer: Adam Turoff <[EMAIL PROTECTED]> > > To make CGI programming easier, this option/pragma should: > > Turn on ta

Re: Larry's Apocalypse 1

2001-04-06 Thread Richard Proctor
On Fri 06 Apr, Dan Sugalski wrote: > This is, I presume, in addition to any sort of inherent DWIMmery? I don't > see any reason that: > > @foo[1,2] = ; > > shouldn't read just two lines from that filehandle, for example, nor why > Fair enough > @bar = @foo * 12; > > shouldn't assign

Re: Larry's Apocalypse 1

2001-04-06 Thread Richard Proctor
On Fri 06 Apr, John Porter wrote: > Richard Proctor wrote: > > but what should > > @bar = @foo x 2; > > do? Repeat @foo twice or repeat each element twice? (its current > > behaviour is less than useless, other than for JAPHs) > > How is one signifi

Apo2: \Q ambiguity

2001-05-04 Thread Richard Proctor
In Apocalypse 2, \Q is being used for two things, and I believe this may be ambiguious. It has the current \Quote meaning admitibly \Q{oute} it is also being proposed for a null token disambiguate context. As in $foo\Q[bar]. But if it is spliting $foo and {this is in curlies} this will be taken

Re: Apoc2 - concerns

2001-05-05 Thread Richard Proctor
On Sat 05 May, John Siracusa wrote: > On 5/5/01 3:28 PM, Larry Wall wrote: > > Well, that's enough brainwracking for the moment. Gloria is making me > > go eat something... > > Bread and water until Apocalypse 33 is done? ;) At one Apocalypse a month, that is a very long time... Would Larry su

A12 Versioning

2004-04-26 Thread Richard Proctor
I am not happy about the versioning proposal. While A12 listed many properties that could apply to a a module such as version, subject, author etc, the versioning declaration class Dog-1.2.1-cpan:JRANDOM; leaves me a little cold. Issues: 1) Why does this only use Version and Author? Supp

Re: The last shall be last (was: The first shall be first)

2004-09-05 Thread Richard Proctor
On Sun 05 Sep, David Green wrote: > On 2004/9/04, [EMAIL PROTECTED] (Jonathan Lang) wrote: > (Nice Subject change, I almost missed it!) > > >Larry Wall wrote: > > > Yow. Presumably "nth" without an argument would mean the last. > > > >If it means the last, why not just use C? > > Conflict with

Re: Still about subroutines...

2004-09-17 Thread Richard Proctor
On Fri 17 Sep, Larry Wall wrote: > > $?fileWhich file am I in? > $?lineWhich line am I at? > $?package Which package am I in? > @?package Which packages am I in? > $?module Which module am I in? > @?module Which modules am I in? > $?class Which class am I in

Re: Still about subroutines...

2004-09-17 Thread Richard Proctor
On Fri 17 Sep, Larry Wall wrote: > : $?osWhich operating system am I operating on > > Again, which OS am I compiled on, or at best, which OS does the compiler > think I'm compiling for, in the case of cross-compilation. > Therefore should: $?os Be which operating system it is being c

Re: What Requires Core Support (app packaging)

2004-09-19 Thread Richard Proctor
On Sun 19 Sep, Jonadab the Unsightly One wrote: > >> Archimedes. It doesn't allow them at all, from what I understand. > > > > It probably doesn't disallow file extensions [per se], but the dot > > Could be. I haven't used it personally. The name should be Risc-OS - the Archimedes is one of t

Yet more on angle quotes

2004-12-03 Thread Richard Proctor
How equivalent are << and «? Does use of one idiom imply the closing quote is the same. ie are the following allowed, prohibited or what? <> Just thinking... Richard -- Personal [EMAIL PROTECTED]http://www.waveney.org Telecoms [EMAIL PROTECTED] http://www.WaveneyConsult

Re: quotemeta

2005-03-16 Thread Richard Proctor
On Wed 16 Mar, Rod Adams wrote: > I vote for axing C in favor of C and C. > Given A05 states that bare scalars match literally, quotemeta is (almost?) obsolete. It can certainly be downgraded. Richard -- Personal [EMAIL PROTECTED]http://www.waveney.org Telecoms [EMAIL PROT

Re: 'is' and action at a distance

2001-05-17 Thread Richard Proctor
On Fri 18 May, Damian Conway wrote: > > Ed wrote: > > >> Can 'undef' valued thingys have properties > > Yes. > >> and functions? > > No. > Why not? Richard -- [EMAIL PROTECTED]

Re: [A-Z]+\s*\{

2002-01-20 Thread Richard Proctor
On Sun 20 Jan, Me wrote: > > On Saturday 19 January 2002 22:05, Brent Dax wrote: > > > Is this list of special blocks complete and correct? > > > > > > BEGIN Executes at the beginning of compilation > > > CHECK Executes at the end of compilation > > > INIT Executes at the beginning of run > > > EN

A5 - A job well done

2002-06-10 Thread Richard Proctor
Larry, Wow, that was a very good demolition and rebuilding of the regex edifice. When the RFCs were being written I spent many hours thinking over some of the issues and writting many of the RFCs on regexes, trying to build on what was in perl5, without changing the existing language use. By al

RE: [RFC] Perl6 HyperOperator List

2002-10-30 Thread Richard Proctor
On Wed 30 Oct, Larry Wall wrote: > An earlier message had something like this as a hyper: > > @a = @b[.method]; > > That absolutely won't work, because [.method] is a valid subscript. > In this case it would have to be written > > @a = @b[.]method; > > But the general problem is just ab

Re: [RFC] Perl Operator List, TAKE 6

2002-11-01 Thread Richard Proctor
On Fri 01 Nov, Michael Lazzaro wrote: > >(heredocs) - [exact format unknown; probably as perl5] > There are comments by Larry in Appo 2 wrt RFCs 111 and 162. Appo 2: === 111 aaa Here Docs Terminators (Was Whitespace and Here Docs) 162 abb Heredoc Contents RFC 111: Here D

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Richard Proctor
This UTF discussion has got silly. I am sitting at a computer that is operating in native Latin-1 and is quite happy - there is no likelyhood that UTF* is ever likely to reach it. The Gillemets are coming through fine, but most of the other heiroglyphs need a lot to be desired. Lets consider the

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Richard Proctor
On Tue 05 Nov, Smylers wrote: > Richard Proctor wrote: > > > I am sitting at a computer that is operating in native Latin-1 and is > > quite happy - there is no likelyhood that UTF* is ever likely to reach > > it. > > > > ... Therefore the only addition

Re: This weeks Perl 6 summary

2002-11-06 Thread Richard Proctor
On Wed 06 Nov, Piers Cawley wrote: > miniparrot, a first attempt > If you've been paying attention to the Parrot build process, you'll be > aware that it was always a goal to use a cut down variant of parrot > itself to run the configuration tests. The plan is that this miniparrot >

Re: String concatentation operator

2002-11-14 Thread Richard Proctor
On Thu 14 Nov, Michael G Schwern wrote: > On Thu, Nov 14, 2002 at 12:19:47PM +, Andy Wardley wrote: > > Can we overload + in Perl 6 to work as both numeric addition > > and string concatenation, depending on the type of the operand > > on the left? There have been times when I have wondered i

Re: In defense of zero-indexed arrays.

2002-12-05 Thread Richard Proctor
On Thu 05 Dec, Michael G Schwern wrote: > So here's your essay topic: > > Explain how having indexes (arrays, substr, etc...) in Perl 6 start at 0 > will benefit most users. Do not invoke legacy. [1] > > [1] ie. "because that's how most other languages do it" or "everyone is > used to it by now"

Re: right-to-left pipelines

2002-12-11 Thread Richard Proctor
On Wed 11 Dec, Simon Cozens quoted: > No proper program contains an indication which as an operator-applied > occurrence identifies an operator-defining occurrence which as an > indication- applied occurrence identifies an indication-defining occurrence > different from the one identified by the g

A6: multi promotion

2003-03-11 Thread Richard Proctor
If one has a simple sub such as factorial: sub factorial(int $a) {...} then one subsequently declares the multi form of factorial to pick up the non-integer form: multi factorial(num $a) {...} Does this promote the original declaration of factorial to a multi? if not what happens? Richard -

Re: A6: multi promotion

2003-03-11 Thread Richard Proctor
On Wed 12 Mar, Michael Lazzaro wrote: > > On Tuesday, March 11, 2003, at 12:39 PM, Austin Hastings wrote: > > You want C to tell the compiler to build in multiple dispatch. > > Any invocation of C after C is going to be a penny > > dropped into the great Pachinko game of multimethod-dispatchery.