Fun with unified collections [was: Re: arrays, hashes unified indexing syntax impact on future varia tion s on other collection types]

2003-01-30 Thread gregor
($level) = $h =~ /^h(\d)$/; # Stringizes to element name my $title = join " ", tgrep { not ref $_ } $h; # Flatten to list of strings print(" " x $level, $title, "\n"); } would print a heading summary with indentation. Perl can already do some pretty LISPy things, so why not some TREPpy things, too? Regards, -- Gregor

Re: Arrays: is computed

2003-01-30 Thread gregor
.)... Regards, -- Gregor Michael Lazzaro <[EMAIL PROTECTED]> 01/30/2003 02:25 PM To: [EMAIL PROTECTED] cc: Subject:Arrays: is computed For C arrays, things get more complicated. Since there are no true 'holes' in a primitive-typed array, th

Re: arrays, hashes unified indexing syntax impact on future varia tion s on other collection types

2003-01-30 Thread gregor
but related) notations: one for unordered access, one for ordered access. Any given object may support none, one or both. Regards, -- Gregor Aaron Sherman <[EMAIL PROTECTED]> 01/30/2003 03:15 PM To: Damian Conway <[EMAIL PROTECTED]> cc: Perl6 Languag

Re: Language Discussion Summaries

2003-02-04 Thread gregor
Sounds like a job for a bot! (couldn't resist) -- Gregor Jonathan Scott Duff <[EMAIL PROTECTED]> 02/04/2003 11:38 AM Please respond to duff To: Buddha Buck <[EMAIL PROTECTED]> cc: "Miko O'Sullivan" <[EMAIL PROTECTED]>, [EMAIL

Re: Object spec

2003-03-05 Thread gregor
us { [self error:"Bogon flux exceeds limit %d\n", BOGON_LIMIT]; } Also, there was a doesNotRecognize: method that was called by the runtime system when method lookup failed. I presume you could override it to do nasty things, but I never did that myself. Regards, -- Gregor

Re: Associations between classes [was: Re: Object spec]

2003-03-05 Thread gregor
Seems like you are thinking along the lines of making Parrot support Prevayler-style http://www-106.ibm.com/developerworks/web/library/wa-objprev/index.html stuff naturally and with less coding at the top layer. Is that where you are headed with this? Regards, -- Gregor Purdy Sam

Re: A6: Complex Parameter Types

2003-03-16 Thread gregor
#x27;get' methods in one place and teh Ellipse-like 'set' methods elsewhere. Circle could inherit from the EllipseGettable but not EllipseSettable (since you can ask for, but not set the semi axes). Regards, -- Gregor Purdy Nicholas Clark <[EMAIL PROTECTED]> 03/

Re: Perl and *ML

2003-03-26 Thread gregor
ontain the list of SAX events (or equivalent) required to reproduce it (allowing some lazy possibilities BTW). Regards, -- Gregor Purdy Dan Sugalski <[EMAIL PROTECTED]> 03/26/2003 10:25 AM To: [EMAIL PROTECTED] cc: Subject:Perl and *ML I think tha

Re: The C Comma

2003-11-24 Thread Gregor N. Purdy
t will handle continue differently inside the "do" part (right?), but it fits my mental model nicely (this idea came from looking at looping constructs from Eiffel as well as elsewhere and looking for the unifying stuff). Regards, -- Gregor On Mon, 2003-11-24 at 16:00, Luke Palmer wr

Re: The Sort Problem

2004-02-11 Thread Gregor N. Purdy
second block gives the transform to apply to the elements before applying the comparison block: sort { $^a <=> $^b } { $_.foo('bar').compute } @unsorted; Or maybe even something like this: sort :numerically :as { $^a.foo('bar').compute } @unsorted; Regards, -- Gre

Exegesis 7: Some other tyops

2004-02-28 Thread Gregor N. Purdy
." "that the string that contains a valid identifier" should be "that the string contains a valid identifier" * In "What you will command me will I do..." "there's not reason" should be "there's no reason". Regards, -- Gregor -- Gregor Purdy[EMAIL PROTECTED] Focus Research, Inc. http://www.focusresearch.com/

Exegesis 7: Dynamic Headers

2004-02-28 Thread Gregor N. Purdy
gt; undef. After that, the same static text will appear in the header. I suppose ... odd => sub { "Act, $act, Scene $scene ..." }, ... would work, though. Regards, -- Gregor -- Gregor Purdy[EMAIL PROTECTED] Focus Research, Inc. http://www.focusresearch.com/

Exegesis 7: Fill Justification

2004-02-28 Thread Gregor N. Purdy
tring...", but in the example that string would be "A fellow of infinite j". The example output shows that the extracted string isn't quite maximal. It tries to keep words together (this rule is detailed elsewhere, but this example doesn't refer to that extraction rule

Exegesis 7: Option Key Validity

2004-02-28 Thread Gregor N. Purdy
at identifier, but what would such a declaration look like? Where exactly does the set of valid option identifiers *for C* come from, and are they tied *to C*, or floating in a global space, free to collide with other (option key) identifier declarations? It seems like ther

Exegesis 7: Overflow Fields

2004-02-28 Thread Gregor N. Purdy
ent of the initial field? If so, are error messages generated if there is overlap? Regards, -- Gregor -- Gregor Purdy[EMAIL PROTECTED] Focus Research, Inc. http://www.focusresearch.com/

Exegesis 7: Perl6::Slurp

2004-02-28 Thread Gregor N. Purdy
The Exegesis mentions the Perl6::Slurp module, but I don't see it on CPAN. Is it just a race condition? Regards, -- Gregor -- Gregor Purdy[EMAIL PROTECTED] Focus Research, Inc. http://www.focusresearch.com/

Re: Exegesis 7: Option Key Validity

2004-02-28 Thread Gregor N. Purdy
lidity before the program starts" But, since E7 doesn't come right out and say it, I'm asking for clarification. Still could be that you are right and there is nothing to see here, though... Regards, -- Gregor On Sat, 2004-02-28 at 07:46, Smylers wrote: > Gregor N. Purdy writes:

Re: Exegesis 7: Overflow Fields

2004-02-28 Thread Gregor N. Purdy
ctly*? Is it an error, does it have some heuristics to guess? What are the edge cases? Regards, -- Gregor On Sat, 2004-02-28 at 07:39, Smylers wrote: > Gregor N. Purdy writes: > > > In "And now at length they overflow their banks." its not clear > > how an overflow fie

Re: Exegesis 7: Fill Justification

2004-02-28 Thread Gregor N. Purdy
Damian -- Good. I don't remember where I first heard about doing it that way vs. from the left, but the results going from the right to left are typically better looking than from left to right, and I use that way exclusively now. Regards, -- Gregor On Sat, 2004-02-28 at 15:54, Damian C

Re: Mutating methods

2004-03-11 Thread Gregor N. Purdy
ving $foo .=someOtherMethod(); equivalent to $foo = $foo.someOtherMethod(); when $foo's class or someOtherMethod() implementation doesn't do anything special? Regards, -- Gregor On Wed, 2004-03-10 at 21:29, Larry Wall wrote: > On Wed, Mar 10, 2004 at 10:46:05PM -0500, matt w

Re: Funky «vector» operator

2004-03-19 Thread Gregor N. Purdy
27;t. Vim also allows < < to get « > > to get » Regards, -- Gregor On Fri, 2004-03-19 at 05:39, Rafael Garcia-Suarez wrote: > Andy Wardley wrote in perl.perl6.language : > > I'm so happy! I just found out, totally by accident, that I can type > > the

Re: Funky «vector» operator

2004-03-19 Thread Gregor N. Purdy
Oh, and the form doesn't require you to do the :set digraph thing. Its always available. Regards, -- Gregor On Fri, 2004-03-19 at 06:16, Gregor N. Purdy wrote: > For me, (vim 6.2), that is > > < < to get « > > > to get » > > after doing > &g

Re: Compatibility with perl 5

2004-04-14 Thread Gregor N. Purdy
, -- Gregor On Tue, 2004-04-13 at 08:12, Luke Palmer wrote: > David Cantrell writes: > > A few days ago I briefly discussed with Nicholas Clark (current perl 5.8 > > pumpking) about making perl5 code forward-compatible with perl6. A > > quick look through the mailing list ar

Re: Compatibility with perl 5

2004-04-14 Thread Gregor N. Purdy
ture of Perl 6. #!/usr/bin/perl6 ... # Perl 6 stuff here use 5; # or, whatever # Perl 5 stuff here no 5; # or, whatever # More Perl 6 stuff here use python; # you get the idea ... Regards, -- Gregor On Wed, 2004-04-14 at 12:59, Aaron Sherman wrote: > On Wed, 200

Re: Compatibility with perl 5

2004-04-14 Thread Gregor N. Purdy
Brent -- Clever points are relatively high here, but I find the idea of doing the notionally simultaneous parse uncomfortable. I really don't want my programs subject to a hidden double parse cost. Regards, -- Gregor On Wed, 2004-04-14 at 15:30, Brent 'Dax' Royal-Gordon wrote:

Re: Compatibility with perl 5

2004-04-14 Thread Gregor N. Purdy
achy keen. If you pass it to a Python interpreter, you get what you deserve :) You have used "use syntax" which falls under the category of "# or whatever" in my message. Regards, -- Gregor On Wed, 2004-04-14 at 18:51, Brent 'Dax' Royal-Gordon wrote: > Gregor N