uc import

2004-02-23 Thread Brent \Dax\ Royal-Gordon
entirely. --Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Exegesis 7: Literal '{' in format string

2004-02-29 Thread Brent \Dax\ Royal-Gordon
to be a double backslash in a double-quoted string, or is there some new Perl 6 magic that keep it from being needed? -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Mutating methods

2004-03-10 Thread Brent \Dax\ Royal-Gordon
, rhs = Perl::method_call.new( term = $lhs, method = $rhs, ) ); } TMTOWTDI, I suppose... -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Mutating methods

2004-03-10 Thread Brent \Dax\ Royal-Gordon
Damian Conway wrote: / $foo:=(abc) $bar:=(def) / Am I misreading, or are you suggesting that $foo may contain 'abc' after running this example, even if the match wasn't successful? -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Mutating methods

2004-03-12 Thread Brent \Dax\ Royal-Gordon
use 'wa' and make the world learn Japanese. :^P -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

[Semi-OT] The ^^ operator

2004-03-18 Thread Brent 'Dax' Royal-Gordon
rather scary. Definitely been chatting with too many anime fans...) -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Dereferencing Syntax (Was: Outer product considered useful)

2004-03-23 Thread Brent 'Dax' Royal-Gordon
. Which shouldn't affect anything. So I think it's probably a mistake. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Dereferencing Syntax (Was: Outer product considered useful)

2004-03-25 Thread Brent 'Dax' Royal-Gordon
Larry Wall wrote: say @bar.elems; # prints 1 Csay? Not Cprint? -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Default program

2004-04-01 Thread Brent 'Dax' Royal-Gordon
, the current behavior may be somewhat entrenched, and might break our promise to assume that code is Perl 5 until we see a different indication. As an alternative, perhaps the -H command-line switch could be used to use a hello world program. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot

Re: Compatibility with perl 5

2004-04-14 Thread Brent 'Dax' Royal-Gordon
that disambiguates between the Perls (e.g. a package statement, a 'use 6'), emit the other's error message. ii. Otherwise, emit an ambiguity warning and both error messages. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: backticks

2004-04-15 Thread Brent 'Dax' Royal-Gordon
never be, the sort of nanny language that makes fundamental operations less accessible just because they're security risks. Heck, we gave our users the 'x' operator, arguably the easiest way in any language to fill up memory quickly. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot

Re: backticks

2004-04-16 Thread Brent 'Dax' Royal-Gordon
Juerd wrote: Brent 'Dax' Royal-Gordon skribis 2004-04-15 16:56 (-0700): 1. Allow %hashfoo to be typed as %hashfoo. There would be a conflict with numeric less-than, but we can disambiguate with whitespace if necessary. After all, we took the same solution with curlies. Curlies which

Re: backticks

2004-04-16 Thread Brent 'Dax' Royal-Gordon
Mark J. Reed wrote: Nope. I'd be perfectly happy if the modulus operator were spelled mod instead of %, which has never struck me as particularly intuitive. I always saw it as being a funny division sign. See the little slash in there? -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl

Re: backticks

2004-04-16 Thread Brent 'Dax' Royal-Gordon
Juerd wrote: Brent 'Dax' Royal-Gordon skribis 2004-04-16 0:25 (-0700): I don't like %hash{'foo'} because it's ugly. I don't like %hashfoo because it's ugly and adds syntax. I don't like %hash`foo because it's ugly, adds syntax, and looks nothing like an indexing operator. (I'll revisit

Re: backticks

2004-04-16 Thread Brent 'Dax' Royal-Gordon
Jonathan Scott Duff wrote: On Fri, Apr 16, 2004 at 10:44:47AM -0700, Brent 'Dax' Royal-Gordon wrote: Regex aliases, threads, lexicals, junctions, and dwimmery make things a *lot* easier to program. This syntactic sugar you're proposing doesn't. But it *does* make an oft-used construct easier

Re: Apocalypse 12

2004-04-17 Thread Brent 'Dax' Royal-Gordon
designing this language. Well done! -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: A12: default accessors and encapsulation

2004-04-20 Thread Brent 'Dax' Royal-Gordon
to do this test, probably involving bit twiddling. Whatever. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: A12: syntax to call Attributes

2004-04-21 Thread Brent 'Dax' Royal-Gordon
, or %.legs Which actually brings up an interesting question: class Silly { has $.thing=1; has @.thing=(2, 3); has %.thing=(4 = 5, 6 = 7); } my $silly=new Silly(); say $silly.thing.class;#Int, Array, or Hash? -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl

Re: A12: Conflicting Attributes in Roles

2004-04-23 Thread Brent 'Dax' Royal-Gordon
foo biz; } -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: $foo.s/foo/bar/

2004-05-12 Thread Brent 'Dax' Royal-Gordon
/// to get the new string ang $foo.=s/// to mutate $foo. Working from the other direction, parens are not valid pattern delimiters, leaving s() open for use: print s(/:g \w+/, 'WORD'); (Or somesuch...dunno about the positioning of :g.) -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot

Re: Yadda yadda yadda some more

2004-05-14 Thread Brent 'Dax' Royal-Gordon
:+ $x + $y postfix:++ $x++ ... ** It's not exactly clear how that's used, considering that you can't do multi-dispatch on the return type (right?)...perhaps like multi sub coerce:as(Int $dest is rw, MyObj $src) {...} -- Brent Dax

Re: Named parameters vs. slurpy hash syntax: brittle call syntax!

2004-05-06 Thread Brent 'Dax' Royal-Gordon
in later versions. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: cmd line like switches for functions and operators.

2004-06-22 Thread Brent 'Dax' Royal-Gordon
; ... } The colon is just a different syntax for a pair constructor; say is what many languages call printline. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: definitions of truth

2004-06-24 Thread Brent 'Dax' Royal-Gordon
: my $foo = '0'; my String $bar = '0'; if $foo { say 'foo true' } if $bar { say 'bar true' } Would print 'bar true', but not 'foo true'. (In other words, variables of type Any keep the Perl 5 behavior, but variables of type String have the behavior you want.) -- Brent Dax Royal

Re: definitions of truth

2004-06-25 Thread Brent 'Dax' Royal-Gordon
; } } } -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: definitions of truth

2004-06-26 Thread Brent 'Dax' Royal-Gordon
their modules to use it the way they do for Int, Num and String. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

The .bytes/.codepoints/.graphemes methods

2004-06-26 Thread Brent 'Dax' Royal-Gordon
said ambiguity removed. * Allows us to reuse constructs (e.g. slicing). * Opens up a few previously-difficult constructs (like getting the ord() of an arbitrary character). -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: undo()?

2004-07-01 Thread Brent 'Dax' Royal-Gordon
another thread's continuation. But that's not what you're asking at all.) -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: undo()?

2004-07-02 Thread Brent 'Dax' Royal-Gordon
*. Nearly any control flow construct can. (I think a goto() can't, but that's about it.) Loops, exceptions, and subroutines can all be implemented in terms of continuations--but so can almost any other control flow construct you can think of, and most likely some you can't. -- Brent Dax Royal

Re: The .bytes/.codepoints/.graphemes methods

2004-07-03 Thread Brent 'Dax' Royal-Gordon
based on my own, possibly false, memory.) -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Cmap Cgrep and lazyness

2004-07-03 Thread Brent 'Dax' Royal-Gordon
{ even() } :lazy 1..1024; -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: if not C, then what?

2004-07-09 Thread Brent 'Dax' Royal-Gordon
} while baz; # assuming we rename exec execute { foo; bar } while baz;# longer, still stupid eval { foo; bar } while baz; # we just escaped overloaded eval { foo; bar }() while baz; # bare-bones -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker

Re: push with lazy lists

2004-07-12 Thread Brent 'Dax' Royal-Gordon
safe mode restricts the length of lazy lists, which I would recommend given the existence this little ball of hate.) -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: enhanced open-funktion

2004-07-15 Thread Brent 'Dax' Royal-Gordon
on either side of the string. This would still allow the often-useful type a pipe command at a prompt for a file, while matching the trait-based syntax suggested elsewhere. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: String interpolation

2004-07-21 Thread Brent 'Dax' Royal-Gordon
. D'oh.] [And then I sent it to the wrong one. D'oh * 2.] -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: String interpolation

2004-07-21 Thread Brent 'Dax' Royal-Gordon
','baz') should work, at least outside a string. Roles are nice, but don't forget about the other mechanisms in Perl for such things. Erm, properties *are* roles. Your example is the same as mine. True, I suppose... -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always

Re: String interpolation

2004-07-21 Thread Brent 'Dax' Royal-Gordon
Uri Guttman wrote: how would you put in the literal string $foo.bar()? escaping the . or the ( ? The dollar sign. (Or, if you wanted to interpolate $foo while leaving the .bar() intact, I would imagine that either \. or \( would suffice.) -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl

Re: xx and re-running

2004-07-23 Thread Brent 'Dax' Royal-Gordon
with reduce(), IIUC. I would hope that Perl 6 will have reduce() as well--perhaps even in a form that doesn't require using List::Util explicitly. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Why do users need FileHandles?

2004-07-24 Thread Brent 'Dax' Royal-Gordon
anything that isn't present, as a core behavior right out of the box. Security nightmare. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Why do users need FileHandles?

2004-07-24 Thread Brent 'Dax' Royal-Gordon
module. Or something like that. Hmm...maybe this could be done for Perl 5... -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: This week's summary

2004-07-26 Thread Brent 'Dax' Royal-Gordon
teacher? *ducks* -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: This week's summary

2004-07-28 Thread Brent 'Dax' Royal-Gordon
Piers Cawley wrote: Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] writes: Care to explain what those are, O great math teacher? What's a math teacher? It's the right^H^H^H^H^HAmerican way to say maths teacher. -- Brent Dax Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker Oceania has always been

Re: Synopsis 4 draft 1

2004-08-20 Thread Brent 'Dax' Royal-Gordon
: macro statement:if ($expr, ifblock) {...} macro statement:while ($expr, whileblock) {...} macro statement:BEGIN (beginblock) {...} And he answers another but how do we... question with a simultaneous [unific|simplific|generaliz]ation. Larry, you're a genius. -- Brent 'Dax' Royal-Gordon

Re: A thought for later -- POD tables

2004-08-22 Thread Brent 'Dax' Royal-Gordon
sub truth | match if C$x($_) [1] Actually, in CSS a table is neither an inline nor a block construct--it's considered its own category, because normal block constructs have a default width of 100%, while tables are only wide enough to hold their contents. Same difference... -- Brent 'Dax

Re: Return with no expression

2004-08-24 Thread Brent 'Dax' Royal-Gordon
. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker There is no cabal.

Re: S5: array interpolation

2004-09-15 Thread Brent 'Dax' Royal-Gordon
quotes don't interpolate @foo[...]) @a = ('a', 'b', 'c'); '@a[0]' ~~ m:/ @a /; # true '@a[2]' ~~ m:/ @a /; # true '@a[9]' ~~ m:/ @a /; # false I think he means as opposed to a subrule. In Perl 5 terms, there's an implicit \Q\E around each value in the array. -- Brent 'Dax

Re: Perl6/Parrot and Backwards Compatability

2004-10-31 Thread Brent 'Dax' Royal-Gordon
of SVs, or deal with things like the parse tree (B::*), will need to be rewritten. (But many of those things are necessary because Parrot does them very differently--e.g. it uses bytecode instead of executing the parse tree directly.) -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot

Re: Angle quotes and pointy brackets

2004-11-28 Thread Brent 'Dax' Royal-Gordon
unused.) Actually, if we do something else with backticks, we can steal backticks for totally raw quoting... I'm open to other ideas, though we must remind ourselves that this is all very bike-sheddish. Oh, I vote for blue paint on that bike shed. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED

Re: Angle quotes and pointy brackets

2004-11-29 Thread Brent 'Dax' Royal-Gordon
one-liner!' One-liners with no specific support in the core--and it's different from Perl 5, so we can detect old one-liners. How's that for orthagonal? -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I might be an idiot, but not a stupid one. --c.l.p.misc (name omitted

Re: Angle quotes and pointy brackets

2004-11-30 Thread Brent 'Dax' Royal-Gordon
. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I might be an idiot, but not a stupid one. --c.l.p.misc (name omitted to protect the foolish)

Re: Angle quotes and pointy brackets

2004-11-30 Thread Brent 'Dax' Royal-Gordon
subs, though, and the last two would be whitespace-sensitive. (But it looks like that isn't a bad thing anymore...) Any other suggestions, people? -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I might be an idiot, but not a stupid one. --c.l.p.misc (name omitted

Re: Angle quotes and pointy brackets

2004-11-30 Thread Brent 'Dax' Royal-Gordon
. Without that, though, I think the metaphor shear of @$fh is too harsh, and the duplication between .fetch and .[shift|pull] isn't necessary. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I might be an idiot, but not a stupid one. --c.l.p.misc (name omitted to protect

Re: Angle quotes and pointy brackets

2004-11-30 Thread Brent 'Dax' Royal-Gordon
John Siracusa [EMAIL PROTECTED] wrote: On 11/30/04 9:54 PM, Matt Diephouse wrote: use CGI «:standard»; [...] use CGi :standard; Who is doing this? I'm just saying... use CGI ':standard'; And won't we just be doing: use CGI :standard; anyway? -- Brent 'Dax' Royal

Re: Angle quotes and pointy brackets

2004-12-03 Thread Brent 'Dax' Royal-Gordon
.] -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I might be an idiot, but not a stupid one. --c.l.p.misc (name omitted to protect the foolish)

Re: state vs my

2004-12-03 Thread Brent 'Dax' Royal-Gordon
; I know it's *going* away, but it hasn't *gone* away yet. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I might be an idiot, but not a stupid one. --c.l.p.misc (name omitted to protect the foolish)

Re: iteration (was Re: Angle quotes and pointy brackets)

2004-12-04 Thread Brent 'Dax' Royal-Gordon
). -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I might be an idiot, but not a stupid one. --c.l.p.misc (name omitted to protect the foolish)

Re: pull put (Was: Angle quotes and pointy brackets)

2004-12-04 Thread Brent 'Dax' Royal-Gordon
enough to negate that. But then, I'm a little biased. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I might be an idiot, but not a stupid one. --c.l.p.misc (name omitted to protect the foolish)

Re: pull put (Was: Angle quotes and pointy brackets)

2004-12-04 Thread Brent 'Dax' Royal-Gordon
to pull, and use something like put/take for shift/unshift? That goes way beyond offending shell heritage. That actively opposes sixty years of computer science terminology setting push and pop in opposition. (Well, maybe not *sixty* years, but you get the idea.) -- Brent 'Dax' Royal-Gordon [EMAIL

Re: specifying the key Type for a Hash

2004-12-07 Thread Brent 'Dax' Royal-Gordon
patients WHERE lastname = ? AND firstname = ?, $last, $first ); } ... } -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I might be an idiot, but not a stupid one. --c.l.p.misc (name omitted to protect the foolish)

Re: specifying the key Type for a Hash

2004-12-07 Thread Brent 'Dax' Royal-Gordon
Matt Diephouse [EMAIL PROTECTED] wrote: On Tue, 7 Dec 2004 00:39:08 -0800, Brent 'Dax' Royal-Gordon my Patient @byid[Int $id] { select_patients(SELECT * FROM patients WHERE patientid = ?, $id)[0]; } multi my Patient %byname{String $last} { select_patients

Re: forany, forall...

2005-01-16 Thread Brent 'Dax' Royal-Gordon
element in a list, do something. if any(@list) 10 { ... } -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker For those of you that can't spell, this site also contains free imags, iamges, imges, picturs, pcitures, picktures, picturess, and pistures.

Re: Retry: ITypes and VTypes.

2005-02-03 Thread Brent 'Dax' Royal-Gordon
. :) Either that, or the Ref value type is designed to wrap an implementation type. I'm not sure which is the case. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker For those of you that can't spell, this site also contains free imags, iamges, imges, picturs, pcitures

Re: Retry: ITypes and VTypes.

2005-02-05 Thread Brent 'Dax' Royal-Gordon
) {...} foo($var); I would assume the answer is syntax error. (Remember, array parameters don't slurp in Perl 6 unless they have a *.) -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker For those of you that can't spell, this site also contains free imags, iamges, imges, picturs

Re: Junction Values

2005-02-18 Thread Brent 'Dax' Royal-Gordon
, for example.) Junctions are equivalent to the English sentence Get eggs, bacon, and toast from the store. (In Perl, that'd be something like C $store-get(eggs bacon toast) .) It's just a bit of orthogonality that allows you to give eggs, bacon, and toast a name and use it later. -- Brent 'Dax

Re: Junction Values

2005-02-18 Thread Brent 'Dax' Royal-Gordon
returns from an autothreaded function.) -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Junction Values

2005-02-18 Thread Brent 'Dax' Royal-Gordon
either, while more experienced programmers will know better. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Junction Values

2005-02-18 Thread Brent 'Dax' Royal-Gordon
: $! for *$IN;# Or however it's done this week -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Lingering questions about Junctions.

2005-02-19 Thread Brent 'Dax' Royal-Gordon
?), and the Cundefs would be treated as 0s. So this actually would work, although it would sort in an...interesting...order. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Junction Values

2005-02-19 Thread Brent 'Dax' Royal-Gordon
datatype to a variable is an abomination). Point of consideration: is accidentally autothreading over a junction any more dangerous than accidentally looping forever over an infinite lazy list? -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail

Re: Sets vs Junctions

2005-02-22 Thread Brent 'Dax' Royal-Gordon
be Any). -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Optional binding

2005-03-06 Thread Brent 'Dax' Royal-Gordon
of Array (or maybe just Array) is consistent with Any; hence $y receives [EMAIL PROTECTED] -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: some misc Perl 6 questions

2005-03-09 Thread Brent 'Dax' Royal-Gordon
the other as trusted. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: A possible solution for s?pintf

2005-03-12 Thread Brent 'Dax' Royal-Gordon
want to perform bulk formatting: say join ' ', ($n1, $n2, $n3) .as('%d'); Or, if that's not quite sufficient: say map { .key.as(.value) } $num = '%d', $str = '%s', ...; -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life

Re: [Fwd: Re: [RFC] A more extensible/flexible POD (ROUGH-DRAFT)]

2005-03-17 Thread Brent 'Dax' Royal-Gordon
to convert. 5. Readable without a formatter. #5 may be last on the list, but it's not least. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: [Fwd: Re: [RFC] A more extensible/flexible POD (ROUGH-DRAFT)]

2005-03-17 Thread Brent 'Dax' Royal-Gordon
Pod dies as a useful documentation language. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: New S29 draft up

2005-03-17 Thread Brent 'Dax' Royal-Gordon
to be longer than do STRING. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Slices

2005-03-20 Thread Brent 'Dax' Royal-Gordon
-- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Definitive and Complete Perl 6 Operator List

2005-04-02 Thread Brent 'Dax' Royal-Gordon
--or for that matter if anything's there that shouldn't be. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Slicing conflict

2005-04-12 Thread Brent 'Dax' Royal-Gordon
...] Which strikes me as a win. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Slicing conflict

2005-04-12 Thread Brent 'Dax' Royal-Gordon
Larry Wall [EMAIL PROTECTED] wrote: On Tue, Apr 12, 2005 at 12:08:43AM -0700, Brent 'Dax' Royal-Gordon wrote: : @foo[1,3; *; 7] : : Which I rather like. Me too. Unless my memory is failing me, I believe that's what S09 already specifies. It does include a Cterm:* (d'oh, should've

Re: Hyper operator corner case?

2005-04-13 Thread Brent 'Dax' Royal-Gordon
:/1 infix:%mumble infix:x1 I could be wrong, though; I can't find any support for it in the design docs. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Truely temporary variables

2005-04-15 Thread Brent 'Dax' Royal-Gordon
.) -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Context of hash slices; quotation adverbs

2005-04-17 Thread Brent 'Dax' Royal-Gordon
context and one-element array context? -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: alarm() and later()

2005-04-21 Thread Brent 'Dax' Royal-Gordon
Larry Wall [EMAIL PROTECTED] wrote: Assuming we rehuffmanize kill to sendsignal or some such, we have: signal is a verb as well as a noun. sub alarm ($secs) { { signal $*PID, Signal::ALARM }.cue(:delay($secs)); } It even reads pretty nicely: signal 4242. -- Brent 'Dax' Royal

Re: Junctions of classes, roles, etc.

2005-04-29 Thread Brent 'Dax' Royal-Gordon
? sub foo(Any | Junction $bar) { ... } -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: Junctions of classes, roles, etc.

2005-04-30 Thread Brent 'Dax' Royal-Gordon
junctions.) When you see a declaration like: my Foo $bar; Think of it as being like: my $bar where { $_ ~~ Foo }; If the latter, then what is the type of Yes|1? I suspect it's `Disjunction of Str | Int`. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have

Re: Formal Parameters To While Block

2005-05-01 Thread Brent 'Dax' Royal-Gordon
). To start off the name game: `is deferred`? `is closure`, `is coderef`, `is sub`? `is condition`? -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker I used to have a life, but I liked mail-reading so much better.

Re: reduce metaoperator

2005-05-05 Thread Brent 'Dax' Royal-Gordon
that tags each result with the operands that created it, allowing junctions to be used for the stuff people currently complain they can't be. multi sub *infixmetaop:[ ] ( $lhs, $rhs ) { return call but operands($lhs, $rhs); } -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl

Re: Binding to a sub's return value

2005-05-10 Thread Brent 'Dax' Royal-Gordon
the default parameter binding is constant reference, last I checked. I actually like that answer. It means that you can bind the return value, but you can't mutate it, unless the function 'is rw'. (And perhaps you could mark it as 'is copy' and 'is ref', too...) -- Brent 'Dax' Royal-Gordon [EMAIL

Re: trait and properties thru getter/setters

2005-05-13 Thread Brent 'Dax' Royal-Gordon
at compile time what is the value/trait name and its value. Well, the value's pretty easy--just pass in a variable: my $b = $a is foo($bar); As for the name, I'd be surprised if the standard symbolic-ref syntax didn't work: my $b = $a is ::($foo)($bar); -- Brent 'Dax' Royal-Gordon [EMAIL

Re: trait and properties thru getter/setters

2005-05-13 Thread Brent 'Dax' Royal-Gordon
On 5/13/05, Larry Wall [EMAIL PROTECTED] wrote: On Fri, May 13, 2005 at 12:26:22PM -0700, Brent 'Dax' Royal-Gordon wrote: : my $b = $a is foo($bar); As we currently have it, that is not legal syntax. is may only be applied to declarations. Sorry, think-o. I meant 'but' in my examples

Re: Plethora of operators

2005-05-14 Thread Brent 'Dax' Royal-Gordon
---/. I think that means this should be in core. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker

Re: ^method ?

2005-05-14 Thread Brent 'Dax' Royal-Gordon
thread, but I'm certainly not attached to those keywords.) -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker

Re: Roles and BUILD

2005-05-16 Thread Brent 'Dax' Royal-Gordon
...) -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker

Re: Perl development server

2005-05-23 Thread Brent 'Dax' Royal-Gordon
Andy Bach wrote off-list: Isn't Abigail the golfer, YA excellent PH, FunWithPerl, er guy? I think camels are Fido and Amelia: http://www.perlmonks.org/?node=31716 You're right, of course. I knew it was one of those A names... -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot

Re: Argument Type Checking

2005-05-23 Thread Brent 'Dax' Royal-Gordon
intercaps modules are normal (modules and classes). Similarly, all-lowercase types are special (unboxed), while intercaps types are normal (boxed classes). -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker

Re: How much do we close over?

2005-06-12 Thread Brent 'Dax' Royal-Gordon
possible. Hmm...maybe the answer is that most destruction isn't guaranteed to be timely, and any object which *is* guaranteed to have timely destruction is illegal to close over unless the programmer marks it as okay. Or maybe that's only with an appropriate stricture... -- Brent 'Dax' Royal

Re: %hash1 ... %hash2

2005-06-14 Thread Brent 'Dax' Royal-Gordon
that when [EMAIL PROTECTED] != [EMAIL PROTECTED], the shorter one got extended with undefs... -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker

Re: proposal: binding with a function

2005-06-20 Thread Brent 'Dax' Royal-Gordon
, a simple name like alias is ambiguous about argument order, where an operator isn't.) -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker

Re: proposal: binding with a function

2005-06-20 Thread Brent 'Dax' Royal-Gordon
will be able to support Ruby, then it will be able to support this function, too. As I've said before, Perl supports `alias`--it's just spelled `:=`. -- Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] Perl and Parrot hacker

  1   2   >