Re: Schwartzian Transform

2001-03-21 Thread Brent Dax
tested, but you get the idea... Or, a slightly different syntax from yours: schwartzian { first {...} sort {...} last {...} } @ary; --Brent Dax Excuse typos, it's hahd to write on a Palm...

RE: Schwartzian Transform

2001-03-22 Thread Brent Dax
>>>>>> "Brent" == Brent Dax <[EMAIL PROTECTED]> writes: > Brent> @s = schwartzian( > Please, if we're going to add an operator, let's not call it schwartzian! > I have enough trouble already telling people how to spell my name. :) W

Re: Perl culture, perl readabillity

2001-03-26 Thread Brent Dax
New Magic to Perl. >- Keep your eyes on >modularity. Modularity is by >far the best concept where >complexity could be hidden. > >- Don't forget usability. This >is after all the point why >people use Perl in the first >place. Never. So the basic question is, readability or usability? I say usability. --Brent Dax Excuse typos, it's hahd to write on a Palm...

RE: Perl culture, perl readabillity

2001-03-26 Thread Brent Dax
-Original Message- From: Jarkko Hietaniemi [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 15.43 To: Brent Dax Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Perl culture, perl readabillity >> The reward? English-speaking children learn what is arguably th

RE: Larry's Apocalypse 1

2001-04-04 Thread Brent Dax
I think we were all just stunned by the sheer brilliance. :^) That package thing is pretty damn clever... --Brent Dax [EMAIL PROTECTED] This e-mail is a circumvention device as defined by the Digital Millennium Copyright Act. #qrpff s''$/=\2048;while(<>){G=29;R=142;if((@a=unq

Re: Larry's Apocalypse 1

2001-04-06 Thread Brent Dax
[EMAIL PROTECTED] wrote on 4/5/01 12.15: >2. package vs. module/class >Whoa. This is so simple yet so sublime. It solves so many issues in one swoop. Cool. >Assuming Perl6 will be parsing Perl5 code? Hmmm. That's interesting. Forget p52p6 and the whole 80/20 thing, we could potentially hit the

RE: Re: Tying & Overloading

2001-04-23 Thread Brent Dax
. How about $a cat $b? That keeps the theme of strings using words and numbers using symbols--like eq vs. ==. --Brent Dax

RE: Larry's Apocalypse 1 \}

2001-04-23 Thread Brent Dax
... (cue X-Files theme) So, what else would we do with our new inline #! notation? Hmm... $foo=$bar; #!comment yadda yadda yadda blah blah blah foo bar baz #!endcomment $bar.=$baz; Maybe? Possibly? No? Darn... --Brent Dax [EMAIL PROTECTED]

Dot can DWIM without whitespace

2001-04-24 Thread Brent Dax
essed?) references, and concat otherwise. Does any of that make sense? Or should I be returned to my straightjacket? :^) --Brent Dax [EMAIL PROTECTED]

Re: Perl 6's for() signature

2003-08-01 Thread Brent Dax
t should be slurpy, I suppose. Damn... --Brent Dax <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: macros and is parsed

2003-08-04 Thread Brent Dax
;> ()/) { return { if($cond) { $expr1; #Last expression is the return value, right? } else { $expr2; } }; } Thanks, Larry! --Brent Dax <[EMAIL PROTECTED]> Perl and Parrot hacker

RE: This week's summary

2003-09-15 Thread Brent Dax
Piers. Enjoy *that*. ;^) --Brent Dax <[EMAIL PROTECTED]> Perl and Parrot hacker "Yeah, and my underwear is flame-retardant--that doesn't mean I'm gonna set myself on fire to prove it."

Re: Damian Conway's Exegesis 2

2001-05-15 Thread Brent Dax
ays "remember my old value whenever I'm assigned to." We'll call this 'undoable'. In this case: @a is undoable; #@a=() is noticed, @a[0] isn't @a are undoable;#@a[0] is noticed, @a=() isn't (or maybe it is?) #i could have used has/have instead, but is/are makes more sense here --Brent Dax [EMAIL PROTECTED]

A couple of ideas about properties

2001-05-20 Thread Brent Dax
sub bar is property(variable) { #property that attaches to the variable ... } Even if it was actually implemented some other way, all we'd need to do is make sure that we can attach properties to it somehow. (The C property would itself attach to a variable, not a value.) --Brent Dax [EMAIL PROTECTED]

RE: A couple of ideas about properties

2001-05-20 Thread Brent Dax
Simon Cozens: >On Sun, May 20, 2001 at 01:09:28AM -0700, Brent Dax wrote: >> This also reads like English: >> Is foo constant? > Until you realise that in order to actually use it sensibly, you'll have to say something like > if (is $foo constant) >

Re: Coupla Questions

2001-06-06 Thread Brent Dax
has exactly one meaning, regardless of context. It also gives () back its C meaning, grouping stuff together so it'll be evaluated first, instead of a meaning that can be different in different contexts. (In general, I think that "syntactic operators" like parenthesis and comma shoul

RE: Multiple classifications of an object

2001-06-28 Thread Brent Dax
I'd think that @ISA would be copied to .ISA on object instantiation, and after that the two wouldn't have anything to do with each other. We could set up one of those cool copy-on-write locks everyone's been talking about to save memory too. Or we could have it default to @ISA if .ISA doesn't ex

The function-interpolation syntax

2001-07-05 Thread Brent Dax
5 print "Baz: $(Baz('a', 'b'))"; #prints Baz: b print "Baz: @(Baz('a', 'b'))"; #prints Baz: a b print "$(Context)"; #prints scalar print "@(Context)"; #prints list Does that check out right? Thanks, --Brent Dax [EMAIL PROTECTED]

How easy will it be to install new methods into builtins?

2001-07-26 Thread Brent Dax
o -language. :^) ) BTW, one other random thought I came up with while I was writing this: Could inheritance be a property? class My::Class is a('Other::Class'); #My::Class::ISA=('Other::Class') --Brent Dax [EMAIL PROTECTED]

FW: if then else otherwise ...

2001-07-29 Thread Brent Dax
nse in any computer language. You may have an idea, # but you are saying it wrong if you do. There are plenty of things that have no counterpart in boolean logic. Where are loops defined in Boolean logic? --Brent Dax [EMAIL PROTECTED]

Semi-OT: Good compiler book?

2001-08-07 Thread Brent Dax
et me know.) Thanks, --Brent Dax [EMAIL PROTECTED]

RE: Will subroutine signatures apply to methods in Perl6

2001-08-25 Thread Brent Dax
27;d have to turn it on explicitly. Could we use this so that we don't have to use 'ref' (or its moral equivalent) in method lookups? In other words, if $spot is declared to hold a Dog, can we assume that it does, thus skipping the check with 'ref' normally used for method dispatch? Would this even buy us anything? Why am I asking myself these questions? Why are the orderlies putting me in a white truck? --Brent Dax [EMAIL PROTECTED]

RE: Will subroutine signatures apply to methods in Perl6

2001-08-25 Thread Brent Dax
# -Original Message- # From: Uri Guttman [mailto:[EMAIL PROTECTED]] # Sent: Friday, August 24, 2001 8:56 PM # To: [EMAIL PROTECTED] # Cc: [EMAIL PROTECTED] # Subject: Re: Will subroutine signatures apply to methods in Perl6 # # # >>>>> "BD" == Brent Dax &

Changes in addressing of package variables?

2001-08-25 Thread Brent Dax
I was thinking about Perl 6 today, and thought of something: if the sigil is now part of a variable's name, does that mean that $Foo::bar should actually be Foo::$bar in Perl 6? --Brent Dax [EMAIL PROTECTED]

RE: Expunge implicit @_ passing

2001-08-28 Thread Brent Dax
od example of a bad use of is-a. It also meant that the class was nearly impossible to modify for different storage--it was far easier to just write a new class with the same interface. Stupid, stupid, stupid. --Brent Dax [EMAIL PROTECTED]

RE: Source/Program metadata from within a program

2001-08-30 Thread Brent Dax
eds to know things like endian-ness and for reading precompiled bytecode anyway, we might as well make it convenient... --Brent Dax [EMAIL PROTECTED] "...and if the answers are inadequate, the pumpqueen will be overthrown in a bloody coup by programmers flinging dead Java programs over the walls with a trebuchet."

RE: Source/Program metadata from within a program

2001-08-30 Thread Brent Dax
to the uninitiated. --Brent Dax [EMAIL PROTECTED] "...and if the answers are inadequate, the pumpqueen will be overthrown in a bloody coup by programmers flinging dead Java programs over the walls with a trebuchet."

RE: Multiple-dispatch on functions

2001-09-01 Thread Brent Dax
$AUTOLOAD is in.) The second step takes care of resolving the address of the function; it handles picking which (if any) of the prototypes available for the method is appropriate for those parameters. Its implementation is left as an exercise to the reader. :^) --Brent Dax (who finds it very amu

RE: Math functions? (Particularly transcendental ones)

2001-09-09 Thread Brent Dax
rograms in the OISC machine language are included. We now have available have a revised and expanded version of oisc called OIC. In the future, this may replace OISC." from http://www.tuxedo.org/~esr/retro/ :^) --Brent Dax [EMAIL PROTECTED] "...and if the answers are inadequate, the pumpqueen will be overthrown in a bloody coup by programmers flinging dead Java programs over the walls with a trebuchet."

Should try work on use?

2001-09-21 Thread Brent Dax
e is in a try block; otherwise we get the same die-at-compile-time behavior. In other words, I want exceptions thrown at compile-time to be catchable at run-time by surrounding try blocks. Are there any barriers to this working? If so, what are they? --Brent Dax [EMAIL PROTECTED] They *will* pay for what they've done.

RE: Custom iterators

2001-09-25 Thread Brent Dax
Uri Guttman: # $fh.irs( 'Peterbilt' ) ; We're going to have an IRS property on filehandles? God, I can hear the jokes already... --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 They *will* pay for what they've done.

BabyPerl 0.01

2001-09-30 Thread Brent Dax
-Interpolation -Operator precedence -Comparison operators -And and Or -Anything not already implemented in Parrot print() currently only takes one parameter, but you can use ~ to concatenate things together. It spits out a crapload of debugging information--symbol ta

RE: A3, the ';' operator, and hyper-operators

2001-10-03 Thread Brent Dax
Now, will use ~. With the many different opinions on this, maybe we should just have three or four different concat operators... --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 They *will* pay for what they've done.

RE: A3, the ';' operator, and hyper-operators

2001-10-03 Thread Brent Dax
_($$)) ($x, $y) # { $x _ $y } # # etc. Of course. OTOH, people will scratch their heads when they come upon $foo § $bar or whatever. On a separate note, how will '$foo??Bar::baz::frob' parse? Since I've been complaining a lot, I'll now say a bunch of the things I do like: ^ //

RE: Exegesis 3 Question

2001-10-05 Thread Brent Dax
parser that smart? # # Just curious... Hmmph. My guess is that you'd have to do something like <($counter > 1000 ?? $file1 :: $file2)> and the fact that there are open parens at the first greater-than would be enough for the parser to figure it out. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 They *will* pay for what they've done.

I'm back

2001-10-21 Thread Brent Dax
I'm back. I notified Simon on the tenth that I was going to be away until today. I'm trying to catch up on the nine-hundred-odd messages the p6? and p5p have thrown at me, so I may be realistically out of commission for a couple days more. --Brent Dax [EMAIL PROTECTED] Configure pu

RE: Perl 6 - Cheerleaders?

2001-10-26 Thread Brent Dax
Those alternate universe syntaxes coming from quantum fluctuations in # the uncollapsed syntax superposition. I'll soon be firing a polaron # burst through the main deflector in a desparate attempt to stabilize # this anomoly before it destroys Perl 6. All these Star Trek references a

RE: Perl 6 - Cheerleaders?

2001-10-29 Thread Brent Dax
uld seem unfair to ban the use of colon on method calls, or to make you declare a self; perhaps: method bar($a, $b: $c, $d) { ... } That still leaves the case of C<< $obj->bar($a: $b, $c) >>. Perhaps: method bar(: $a: $b, $c) would work f

Quick question on subroutine declaration syntax

2001-10-29 Thread Brent Dax
to know if I'm at least right about the placement of 'type'. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I’m not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya *BabyPerl is a program I'm wor

Re: Auto-creation of simple accessors (was: Perl 6 - Cheerleaders?)

2001-10-30 Thread Brent Dax
7;apple'); # green $obj.fruit{apple} # Regardless of whether something like the above two examples # can/will be # auto-created, what would those methods look like anyway? # Would they simply # be: # # method colors is lvalue { return @.colors } # method fruit is lvalue { return %.fruit

RE: Perl 6 Object Oriented Operators [was: Perl 6 - Cheerleaders?]

2001-10-30 Thread Brent Dax
Damian Conway: # BTW, colon isn't an operator (it's a separator), so it can't be hyped. What do you mean? We can hype the colon all we want! :^) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I’m not going to fire a $2 million missile at a $10

RE: Static Values and Variable Bindings [was RE: Perl 6 - Cheerleader s?]

2001-11-01 Thread Brent Dax
#x27; general way to make both a scalar variable # binding and its # value constant? Could you do C<%MY::{'$pre'} is constant> to lock the symbol table entry? --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 When I take action, I’m not going to fire a $2 million missile at a $10 empty tent and hit a camel in the butt. --Dubya

RE: TIMTOWT concat / hypo-operators

2001-10-06 Thread Brent Dax
ing by someone who knows more than me. :^) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 They *will* pay for what they've done.

RE: EX3: Adverbs and print()

2001-10-07 Thread Brent Dax
e is the only eccentricy I have left from my early work in (ugh) VB print $fh: .quux; #same as $me.quux print $fh: .gerflonkurator; #same as $me.gerflonkurator } Cool. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 They *will* pay for what they've done.

RE: NaN semantics

2001-10-07 Thread Brent Dax
y for waking up perl6-language. I had seen almost no traffic on it in weeks, and was starting to get a bit worried that thoughts on the languages were coughing, sputtering and dying. :^) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 They *will* pay for what they've done.

RE: General Feelings on Apoc 3

2001-10-09 Thread Brent Dax
think of it as a "skewed or", which is, er, # both what it both is, and what it looks like. If we have 'and', 'or' and 'xor', can we have 'dor' (defined or) to be a low-precedence version of this? --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 They *will* pay for what they've done.

RE: NaN semantics

2001-10-09 Thread Brent Dax
nsistency, I'd prefer to use is: 3+(2 is i). Well, either way, this is a good thing for properties to handle. GO PROPERTIES! ;^) --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 They *will* pay for what they've done.

BabyPerl 0.02

2001-10-10 Thread Brent Dax
complete Followed by the catch-all: Cannot continue after parsing errors I've pasted a program below that shows much of what it can handle. babyperl.pl is attached to this e-mail. It's over 600 lines, and very messy. I will likely rewrite the whole thing Real Soon Now to make it

RE: Apropos of nothing...

2001-12-13 Thread Brent Dax
se should be obvious. In that case, 'scalar' context is really 'one' context. However, we can still call it scalar context if it makes you feel better. :^) (Yes, those are just my opinions. They do not necessarily reflect Larry's, Damian's or the guy in the padded ce

RE: Taking bakcups of a files in directory structure

2001-12-20 Thread Brent Dax
concatenation) operators (in perlop). -The opendir(), readdir(), closedir(), and rename() built-in functions (in perlfunc). HTH. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

Perl 6's Exporter

2001-12-21 Thread Brent Dax
t; ['@argv %argv']} ); In other files: use MyModule; #imports everything in export use MyModule 'quux';#imports only &quux use MyModule ':argc'#imports @argv and %argv use MyModule(); #imports nothing

RE: Taking bakcups of a files in directory structure

2001-12-22 Thread Brent Dax
Richard J Cox: # [EMAIL PROTECTED] (Brent Dax) wrote: # > krish: # > # I am a beginner in Perl and have a very trivial query. I have # > # some .expect # [...] # > # > This is the wrong group for this sort of question. # perl6-internals is # # s/internals/language/ Doh! got the

RE: Perl 6's Exporter

2001-12-22 Thread Brent Dax
Bryan C. Warnock: # On Saturday 22 December 2001 02:29 am, Brent Dax wrote: # > I've been thinking about improvements that could be made to # Exporter for # > Perl 6. # > # > 1. Choosing where to export to: # > use Data::Dumper 'Dumper' => 'd

RE: Perl 6's Exporter

2001-12-22 Thread Brent Dax
Michael G Schwern: # I've rearranged the proposed features a bit to put the long objections # at the bottom. # # Brent Dax wrote: # > I've been thinking about improvements that could be made to # Exporter for # > Perl 6. # > 3. Warnings about conflicts: # >

Peaceful coexistence (for 5 and 6)

2001-12-24 Thread Brent Dax
We have an empty 'less' pragma in Perl 5, right? use less '6'; use less '6' => 'path/to/perl/6/version'; --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

[A-Z]+\s*\{

2002-01-19 Thread Brent Dax
of the current block UNDOExecutes on "un-normal" exit of the current block --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker . hawt sysadmin chx0rs This is sad. I know of *a* hawt sysamin chx0r. I know more than a few. obra: There are tw

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

2002-01-20 Thread Brent Dax
oderef; # # and then wondering why it says "Undefined LAST block" or some such. Maybe all of the [A-Z]+'s get defined each time the block is entered (or, if the block is being iterated on, the first time the block is entered during this set of iterations). --Brent Dax [EMAIL PROTE

RE: Apocalypse 4 : The Strange Case of the STRANGE CASE

2002-01-23 Thread Brent Dax
difference there. Nope. 'use Foo;' is translated to 'BEGIN {require Foo; import Foo;}' by Perl; Exporter just provides a default implementation of import(). --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker . hawt sysadmin chx0rs This is sad. I know of

RE: Perl6::Tokeniser

2002-01-27 Thread Brent Dax
. operator? Still, though, a wonderful piece of code. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker Check out the Parrot FAQ: http://www.panix.com/~ziggy/parrot.html (no, it's not mine) . hawt sysadmin chx0rs This is sad. I know of *a* hawt sysamin chx0r. I k

FW: Perl6 -- what is in a name?

2002-01-28 Thread Brent Dax
have a Camel III. The first thing is to open it to Chapter 4, which starts on page 111. Now, read through Apocalypse 4, highlighting everything that's changed. Not things that have been added--just things that have changed. I think you'll find that Perl 6 isn't as dissimilar

RE: Perl6 -- what is in a name?

2002-01-28 Thread Brent Dax
Aaron Sherman: # On Mon, 2002-01-28 at 11:17, Brent Dax wrote: # # > I'd like you to perform an exercise for me if you have a Camel III. # # I have a Camel 1 (pink) and 2, but not 3. However, I follow # you. You are # (as everyone else has fallen into the trap of) thinking of only what #

RE: Barewords and subscripts

2002-01-28 Thread Brent Dax
d{x}",%d{x})? Is # that a bug or does it produce "n{x}" where n is the value of # %d{x} as an # integer? It produces something pretty weird. Just single-quote the format string instead of double-quoting it. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker

RE: What can be hyperoperated?

2002-01-28 Thread Brent Dax
note that that still leaves grep as-is, with the old format. Perhaps that's a clue that we should leave this alone, though perhaps with the args to map and grep rearranged. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker Check out the Parrot FAQ: http://www.panix.com/~z

RE: [ID 20020130.001] Unicode broken for 0x10FFFF

2002-01-30 Thread Brent Dax
ach node's siblings. Implementation-wise, things get fairly easy once the vtable->match stuff I mentioned above is in place. Obviously we would optimize for string matching. Also, we WILL lose some performance, even over the current slowdown compared to Perl 5. Nevertheless, it can be

RE: Mono and Perl6....

2002-02-06 Thread Brent Dax
Sure we will. They're just not our first target. We build our own interpreter/VM, then when that's working we start in on the JVM and/or ..NET back ends. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking and regex hacker Check out the Parrot FAQ: http://www.panix.com/~ziggy/parrot

RE: proposal: when-blocks, and binding $_

2002-02-26 Thread Brent Dax
your reply and intersperse your text with the text of the message as appropriate. I and most other people on the Perl 6 lists use this style--it helps to provide context and remind people what the discussion is about. Even if your mailer arranges the text so that your style is easier (as mine does),

RE: Semicolons: where they're needed

2002-02-27 Thread Brent Dax
else {#which leaves this else dangling! baz } # And can we assume that "on a line by itself" ignores non-$/ # whitespace? And comments, I imagine. --Brent Dax [EMAIL PROTECTED] Parrot Configure pumpking, regex hacker, embedding coder, and boy genius #define priv

RE: rethinking printf

2002-03-06 Thread Brent Dax
%d hash is %s', $bar, %foo; ? After all, interpolating into an sprintf is a bit dangerous anyway (what if %foo=('%d' => '')?), and you avoid special cases. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) #de

RE: rethinking printf

2002-03-10 Thread Brent Dax
seems to # have some backing and it is clean and unobtrusive. I think qn counts as weird syntax. I ask again, what's wrong with one of: sprintf("%hash\%s", $string); sprintf(%hash.'%s', $string); sprintf('%s%s', _%hash, $string); ? --Brent

RE: rethinking printf

2002-03-10 Thread Brent Dax
ber this or haven't read about it somewhere, open() was once a hybrid unary and list operator, so "open FOO, 'bar' || die;" worked.) A minor adjustment in either the language or the user's usage was all that was necessary to avoid problems with the change --Brent

RE: rethinking printf

2002-03-10 Thread Brent Dax
Uri Guttman: # >>>>> "BD" == Brent Dax <[EMAIL PROTECTED]> writes: # # BD> I think qn counts as weird syntax. I ask again, what's # wrong with one # BD> of: # # BD> sprintf("%hash\%s", $string); # # BD> sprintf(%h

RE: Exegesis 4

2002-04-03 Thread Brent Dax
pport the Perl 5 blockless style. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) #define private public --Spotted in a C++ program just before a #include

RE: // in Perl 5.8?

2002-04-17 Thread Brent Dax
#x27;s expecting a binary operator or Something Else. That's how it handles things like vs. numeric less-than (<). I think, that is. I've always heeded Larry's warning from Camel III that the tokenizer "has been known to induce eating disorders in lab rats" (p467). :^

RE: // in Perl 5.8?

2002-04-17 Thread Brent Dax
y, opcode.pl, pp.c, and pp_hot.c. (Of course, it's also off an old bleadperl, but I doubt those files change that actively.) BTW, so far toke.c hasn't been as bad as I've heard it is. :^) --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) #define private public --Spotted in a C++ program just before a #include

RE: Regex and Matched Delimiters

2002-04-19 Thread Brent Dax
mention that. [3] This seems a bit useless to me too. It's probably more useful to have a /r modifier on the entire regex. [4] I changed the ordering for this one to avoid an ambiguity. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) #define private public --Spotted in a C++ program just before a #include

RE: Regex and Matched Delimiters

2002-04-22 Thread Brent Dax
ks like and that this will work on it. For this simple reason, I highly suggest somehow hijacking curlies instead, and perhaps making embedded code use two curlies. After all, regexes are intimidating enough already. :^) --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) #define private public --Spotted in a C++ program just before a #include

RE: Regex and Matched Delimiters

2002-04-23 Thread Brent Dax
Piers Cawley: # "Brent Dax" <[EMAIL PROTECTED]> writes: # > Larry Wall: # > That's...odd. Is $$ (the variable) going away? # > # > # /./s // or /<.>/ ??? # > # > I think that . is too common a metacharacter to be # relegated to

RE: Regex and Matched Delimiters

2002-04-23 Thread Brent Dax
Sorry to reply to the same message twice, but I just noticed something. Larry Wall: # {n,m} Isn't that the only use of angle brackets as a quantifier? That's going to make parsing more difficult... --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_&q

RE: // in Perl 5.8?

2002-05-01 Thread Brent Dax
Mark J. Reed: # On Wed, May 01, 2002 at 12:11:58PM -0700, Brent Dax wrote: # > It's far too late to make it into 5.8, but it looks like # it'll be in # > 5.10 when that comes out (in a year or two). # .. . . by which time 6.0 will have already been released, right? # # Rig

RE: // in Perl 5.8?

2002-05-01 Thread Brent Dax
David Wheeler: # On 4/17/02 10:02 PM, "Brent Dax" <[EMAIL PROTECTED]> claimed: # # > I'm working on a preliminary version right now. So far it's been # > surprisingly easy--touches toke.c, perly.y, opcode.pl, pp.c, and # > pp_hot.c. (Of course, it'

RE: // in Perl 5.8?

2002-05-01 Thread Brent Dax
Allison Randal: # On Wed, May 01, 2002 at 01:04:10PM -0700, Brent Dax wrote: # > # > *bites back sarcastic comment about the pace of Perl 6's # development* # # *fails to squelch reply about the survival rate of prematurely birthed # babies* # # Some things just take time. I kn

RE: // in Perl 5.8?

2002-05-01 Thread Brent Dax
Graham Barr: # On Wed, May 01, 2002 at 12:17:52PM -0700, David Wheeler wrote: # > On 5/1/02 12:11 PM, "Brent Dax" <[EMAIL PROTECTED]> claimed: # > # > > It's far too late to make it into 5.8, but it looks like # it'll be in # > > 5.10 when that come

RE: stringification of objects, subroutine refs

2002-05-11 Thread Brent Dax
g all of # these as holes would be too much IMO. That's fixed in 5.8--it uses B::Deparse to make a rough version of the sub. Just hope it isn't a closure. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) blink: Text blinks

RE: Idea

2002-05-22 Thread Brent Dax
Luke Palmer: # sub myint($x) { my $i = int $x; $i == $x ? $x : $i } sub myint($x) { int $x // $x } #assuming it returned undef --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) blink: Text blinks (alternates between visible and invisi

RE: Perl6 currying

2002-05-28 Thread Brent Dax
kes sense to me. I'm sure it's still there. Otherwise there's no way to take a reference to a scalar. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) blink: Text blinks (alternates between visible and invisible). Conformin

RE: Half measures all round

2002-06-04 Thread Brent Dax
all round. Just because we're trying to make radical changes doesn't mean we can't make a small sacrifice to the backwards-compatibility gods. After all, it would be kinda nice if there were users besides p6* list members, and I doubt it'll work without at least the small sacrifi

RE: Half measures all round

2002-06-04 Thread Brent Dax
ones, obviously). # # There. Nearly 3% of the CPAN ported in two fell swoops! ;-) Why bother? You've already put P::RD and T::B effectively in the core! ;^) --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) blink: Text blinks (alternat

RE: regex and xml/html/*ml

2002-06-05 Thread Brent Dax
nterpreted the same way, but typed a bit differently. It won't match your regex. The moral of the story is that you should not try to parse the *MLs with regexen--use modules instead. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure

A5: Is this right?

2002-06-06 Thread Brent Dax
\{ \} | \< !? [ \w+ | \d+ , \d+ ] \> ) } } --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) Early in the series, Patrick Stewart came up to us and asked how warp drive worked. We explained some of the hypothetical principles

RE: A5: Is this right?

2002-06-06 Thread Brent Dax
Larry Wall: # On Fri, 7 Jun 2002, Damian Conway wrote: # # > Brent Dax wrote: # > # > > grammar Perl6::Regex { # > > rule metachar { <[<{(\[\])}>:*+?\\|]>} # > > # > > rule ws { [<[\h\v]>|\#\N*]*

RE: Apoc 5 questions/comments

2002-06-09 Thread Brent Dax
mplementing their interpreters in Perl... ;^) --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) Early in the series, Patrick Stewart came up to us and asked how warp drive worked. We explained some of the hypothetical principles . . . &qu

RE: lex behavior

2002-06-13 Thread Brent Dax
next>/ && $best && # $0.length < $best.length { # } # fail unless $best; # let $0 := $best; # .pos = $best.pos; # }} # # then: # # "bacamus" =~ / /; Will that handle captures correctly? Maybe you should temporiz

RE: foobar syntax

2002-06-13 Thread Brent Dax
er a valid delimiter, and if you want a balanced one '[' is usually ideal. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) Early in the series, Patrick Stewart came up to us and asked how warp drive worked. We explained

RE: Implementing Perl 6 (was Re: Implementing Parse::RecDescent directives)

2002-06-15 Thread Brent Dax
tation language) and a willingness to dig # through the Apocalypses and Exegeses. (Well, that and not minding the # first version likely getting tossed out when we do the final # implementation... :) If we can use a real parser (Parse::Yapp, Parse::RecDescent), I'd love to help. If not...we

RE: Perl6 grammar (take V)

2002-07-14 Thread Brent Dax
and converting those that only contain pairs.) # (I hope the answer isn't "white space" . . ) # # # [Hi, I'm new around here, so I'll give you the three-line # introduction. I teach Perl at Monash Uni, my office is in the # same corridor as Damian's, and I like cats, chocolate, and # curry. (Not all at once.) ] Well, any friend of Damian's... :^) --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) He who fights and runs away wasted valuable running time with the fighting.

RE: Perl6 grammar (take V)

2002-07-15 Thread Brent Dax
xt() keyword would be like the opposite of want(). Of course, something like: context $x: foo(); Might not work. --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) He who fights and runs away wasted valuable running time with the fighting.

RE: hyper operators - appalling proposal

2002-07-15 Thread Brent Dax
ectorization happens, and with the ability to # define your # > own array behavior, you can pretty much do this however you # want anyway. # # Yes but it would be nuts to have PDL arrays do things one way # and inbuilt # compact arrays do things another way. No, it wouldn't. PDL is

RE: Grammar ambiguities again (was: Perl 6 Summary for week ending 20020714)

2002-07-15 Thread Brent Dax
s. Autodereferencing happens whenever we have a scalar but we need an array or hash; autoreferencing happens whenever we have an array or hash but need a scalar (usually because of scalar assignment, but not necessarily). --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) He who fights and runs away wasted valuable running time with the fighting.

RE: Grammar ambiguities again (was: Perl 6 Summary for week ending 20020714)

2002-07-15 Thread Brent Dax
David Whipp: # Brent Dax wrote: # > $href = hash { %hash }; #B # # Why the curlies? if C is a function (ctor), then surely # these should be parentheses. In this context, parentheses are # optional, so this could be written # #$href = hash %hash; C is not a function. It&

Quick Perl 6 regex question

2002-07-16 Thread Brent Dax
es in text. :^) ) Reading this, I noticed a potential problem in :w. To put it simply, what do these expand to? m:w/foo [~|bar]/ m:w/[~|bar] foo/ m:w/[~|bar] [^|baz]/ m:w/@foo @bar/ --Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding

  1   2   3   4   >