Re: Synposis 26 - Documentation [alpha draft]

2006-10-13 Thread Brent 'Dax' Royal-Gordon
ically scoped to the block in which they're specified. =config head3 :numbered =cut method foo($bar, $baz) { ... } =head3 CRC<, >RC<)> ... Is that =head3 numbered, or is it in a different lexical scope? (Actually, I don't see any reference to =cut in thi

Re: Flunking tests and failing code

2005-12-05 Thread Brent &#x27;Dax&#x27; Royal-Gordon
he libraries where simplicity is more important than DWIMmery, lest a Perl bug manifest itself somewhere deep in the bowels of the test framework itself. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Brent &#x27;Dax&#x27; Royal-Gordon
e long ago on a `part` builtin? I certainly wrote List::Part based on that discussion... -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Hyphens vs. Underscores

2005-11-16 Thread Brent &#x27;Dax&#x27; Royal-Gordon
the hyphen, simply type something like `use hyphens;` and you can use hyphenated identifiers in the surrounding scope. And unlike Ruby, this will be easy to do unambiguously: just override the Perl 6 grammar's identifier rule. All the edge cases will be resolved by the longest token principle, so `foo-bar-baz` will be an identifier. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Ways to add behavior

2005-10-26 Thread Brent &#x27;Dax&#x27; Royal-Gordon
onists could make jokes about "reproducing after their kind". > Some of us could make either kind of joke. But perhaps it wouldn't > be kind. Flavor. (Shades of CLOS, but we're already building the most flexible object system since it...) -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: new sigil

2005-10-20 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Less than . Method call on topicMethod call > (technically unused)Greater than / Anonymous rule Divide ? Boolify There are very few unary operators available, and none (besides the user-defined backticks operator) unused in both term and operator context. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: What the heck is a submethod (good for)

2005-10-13 Thread Brent &#x27;Dax&#x27; Royal-Gordon
hink they might actually be a sort of syntactic sugar for inserting `call` in the method body, but that's an implementation detail, really... -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Proposal to make class method non-inheritable

2005-10-12 Thread Brent &#x27;Dax&#x27; Royal-Gordon
tance. Removing features simply because their implementation is inconvenient is not The Perl Way. If it were, Perl 6 would be Java With Sigils. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: my $key is sensitive;

2005-10-04 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ctively encrypting that area of memory--but without a minimum standard there's no point in supporting the feature at all. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

my $key is sensitive;

2005-10-03 Thread Brent &#x27;Dax&#x27; Royal-Gordon
grammer's assistance (by calling a "wipe" function or making sure a destructor is correctly called), and optimizers have been known to "helpfully" remove such code. Many higher-level languages, including Perl 5, make it hard to know when a piece of data is being overwritten,

Re: item and slurpy

2005-09-09 Thread Brent &#x27;Dax&#x27; Royal-Gordon
'll fire the first shot: type names should be nouns, not adjectives. But Pugs's internal type names are fairly irrelevant, as long as they have the right names on the outside. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

perl6-language@perl.org

2005-09-07 Thread Brent &#x27;Dax&#x27; Royal-Gordon
{ ... print $ERR: @msg; return [EMAIL PROTECTED] #but true; } return; } I rather like that non-lexical use of junctions. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

[RELEASE] WWW::Kontent 0.02: Release and revelations

2005-09-01 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Perl 5 equivalent. I could not have done this project without the support of Google and the Perl Foundation, especially my mentor at TPF, Ovid. Nor would this project be possible wtihout the efforts of the Perl 6 design team and the Pugs implementation team. Thanks to everyone involved. Share and enjoy, -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Classes as special undefs

2005-08-11 Thread Brent &#x27;Dax&#x27; Royal-Gordon
tax: my Dog $spot .=new(); Falls out of it quite naturally. On the other hand, there are other things that don't work quite so well: my Dog $spot; $spot.can('bark');# Not until he's instantiated... On the gripping hand, maybe you should have to ask the metaclass

Re: Perl 6 Meta Object Protocols and $object.meta.isa(?)

2005-08-10 Thread Brent &#x27;Dax&#x27; Royal-Gordon
TSa <[EMAIL PROTECTED]> wrote: > you wrote: > > Perl 6 in its unannotated form is also (mostly) a typeless languages, > > with only the five builtin types, much like Perl 5 is. > > Counting the sigil quadriga as 4, what is the fifth element? > And $it.does(LookGood

Re: undef.chars?

2005-08-04 Thread Brent &#x27;Dax&#x27; Royal-Gordon
rs $undef" is just the > indirect object form. Didn't $Larry rule that method calls on undef return undef, for the same reason array and hash subscripting does? -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

[RELEASE] WWW::Kontent 0.01

2005-08-03 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ar expressions. You will also need a SQL database engine and the Perl 5 DBI drivers to access it. I am rather excited about this project, and I hope you will be too. Share and enjoy, -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Curious use of .assuming in S06

2005-07-29 Thread Brent &#x27;Dax&#x27; Royal-Gordon
woof ::= &bark:(Dog).assuming :pitch; > > Why is it allowed to omit comma between adverbial pairs, and even > omit parens around method call arguments? Is .assuming a special form? Isn't this just another form of the syntactic rule that gives us @array.grep:{ ... } ? -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

$value.confess()

2005-07-28 Thread Brent &#x27;Dax&#x27; Royal-Gordon
however, this would probably be a global setting, not a lexical one. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Exposing the Garbage Collector

2005-07-23 Thread Brent &#x27;Dax&#x27; Royal-Gordon
rks by interfacing with the garbage collector, keeping an array of weak references, or waving a wooden wand and yelling "Accio objects" is completely up to the metaclass in question. (Sorry, been reading too much Potter lately...) -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Tail method calls, can(), and pre-currying

2005-07-22 Thread Brent &#x27;Dax&#x27; Royal-Gordon
On 21/07/05, Adriano Ferreira <[EMAIL PROTECTED]> wrote: > But is there any other case where we need an explicit tail call with "goto"? When the callee uses `caller -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Do I need "has $.foo;" for accessor-only virtual attributes?

2005-07-22 Thread Brent &#x27;Dax&#x27; Royal-Gordon
programmers will get wrong half the time, and which you don't even have enough syntax to cope with *anyway*. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Tail method calls, can(), and pre-currying

2005-07-20 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ference, in this case being invoked as a tail call. Of course, this adds *another* piece of syntax to an already large language, so I'm not sure if it's a good idea. Am I missing something? How do you think a tail method call should be performed? -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Strange interaction between pairs and named binding

2005-07-18 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ork with. This would help to fix the problem without creating a new SuperPair type or something similarly silly. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: proposal: binding with a function

2005-06-20 Thread Brent &#x27;Dax&#x27; Royal-Gordon
and call it a day. IIUC, traits like `is exported` are attached to the container, not the name; since aliasing connects a name to a container, you should be fine on that front. (If it doesn't work, that's because `is exported` does something funky that `alias` would have to treat as a s

Re: proposal: binding with a function

2005-06-20 Thread Brent &#x27;Dax&#x27; Royal-Gordon
bytes ::= &kilobyte; I'm not really sure what behavior you have in mind for alias. (By the way, 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: %hash1 >>...<< %hash2

2005-06-14 Thread Brent &#x27;Dax&#x27; Royal-Gordon
e this It does? I thought that when [EMAIL PROTECTED] != [EMAIL PROTECTED], the shorter one got "extended" with undefs... -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: How much do we close over?

2005-06-12 Thread Brent &#x27;Dax&#x27; Royal-Gordon
s as optimizing Parrot's continuation-based sub calls into bsr/ret where 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.

Re: Transparent / Opaque references

2005-05-27 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Juerd <[EMAIL PROTECTED]> wrote: > There is no way to get an anonymous rw scalar, is there? There's always the Perl 5 hack: \do { my $x } Although that's not truly anonymous, I suppose. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Argument Type Checking

2005-05-23 Thread Brent &#x27;Dax&#x27; Royal-Gordon
se modules are special (pragmata), while 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: Perl development server

2005-05-23 Thread Brent &#x27;Dax&#x27; 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-Gor

Re: Perl development server

2005-05-23 Thread Brent &#x27;Dax&#x27; Royal-Gordon
On 5/23/05, Juerd <[EMAIL PROTECTED]> wrote: > Also, this new machine needs a hostname. Please help me think of a cute > name! I prefer a short hostname with less than 9 letters. I seem to remember that the camel's name is Abigail... -- Brent 'Dax' Royal-Gordon &

Re: Roles and BUILD

2005-05-16 Thread Brent &#x27;Dax&#x27; Royal-Gordon
would need it too...) -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: ^method ?

2005-05-14 Thread Brent &#x27;Dax&#x27; Royal-Gordon
other languages use "this", "self", and even "me", and few people complain about a particular language's choice. (My suggestion would be "o" or "O", as suggested in another thread, but I'm certainly not attached to those keywords.) -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: Plethora of operators

2005-05-14 Thread Brent &#x27;Dax&#x27; Royal-Gordon
w." *a few more seconds* "Holy /f---/." I think that means this should be in core. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker

Re: trait and properties thru getter/setters

2005-05-13 Thread Brent &#x27;Dax&#x27; 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 declaratio

Re: trait and properties thru getter/setters

2005-05-13 Thread Brent &#x27;Dax&#x27; Royal-Gordon
n eval? > > My question is more generic than my example. > I may not know 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

Re: Binding to a sub's return value

2005-05-10 Thread Brent &#x27;Dax&#x27; Royal-Gordon
to a copy of $foo's value, 42. Really? Because 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 i

Re: reduce metaoperator

2005-05-05 Thread Brent &#x27;Dax&#x27; Royal-Gordon
mon use for this--isn't common enough an operation to need such a compact syntax; I can think of more useful meta-ops, like one 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 *infixme

Re: Formal Parameters To While Block

2005-05-01 Thread Brent &#x27;Dax&#x27; Royal-Gordon
;is lazy" > (another hint that it's the wrong name). 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: Junctions of classes, roles, etc.

2005-04-30 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ans "This variable can contain either a `Str` or an `Int`." (Actually, it means "this variable can contain anything consistent with a Str or Int", which also includes subclasses and certain junctions.) When you see a declaration like: my Foo $bar; Think of it as being

Re: Junctions of classes, roles, etc.

2005-04-29 Thread Brent &#x27;Dax&#x27; Royal-Gordon
this is? sub foo(Str | Int $bar) { ... } Or this one, which is even more important? 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: alarm() and later()

2005-04-21 Thread Brent &#x27;Dax&#x27; Royal-Gordon
s pretty nicely: "signal 4242". -- 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 &#x27;Dax&#x27; Royal-Gordon
y, that makes me wonder: is there a difference between scalar 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: Truely temporary variables

2005-04-15 Thread Brent &#x27;Dax&#x27; Royal-Gordon
to work on lexicals, of course.) -- 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: Hyper operator corner case?

2005-04-13 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ty,$identity,$identity), where $identity's value is determined by a table something like this: infix:<+>0 infix:<->0 infix:<~>'' infix:<*> 1 infix:1 infix:<%>mumble infix:1 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: Slicing conflict

2005-04-12 Thread Brent &#x27;Dax&#x27; 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 specifi

Re: Slicing conflict

2005-04-12 Thread Brent &#x27;Dax&#x27; Royal-Gordon
umfix rule.) By the way, this also shortens the common idiom: @[EMAIL PROTECTED] To simply: @foo[3...] 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: Definitive and Complete Perl 6 Operator List

2005-04-02 Thread Brent &#x27;Dax&#x27; Royal-Gordon
quot;terms" level isn't really exhaustive. In any case, let me know if anything's missing--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: Slices

2005-03-20 Thread Brent &#x27;Dax&#x27; Royal-Gordon
lying string, would we get the OP's behavior for free? say $string.chars[-1]; $string.points.splice(0, 2, "Hello"); # Or "Hello".points -- 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 &#x27;Dax&#x27; Royal-Gordon
uot;lamda x: x + $y"), :lang('python'); Since as long as we're huffmanizing, eval STRING deserves 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: [Fwd: Re: [RFC] A more extensible/flexible POD (ROUGH-DRAFT)]

2005-03-17 Thread Brent &#x27;Dax&#x27; Royal-Gordon
switching to square brackets is necessary. By the way, I think I've seen a few people suggest some sort of syntax-switching mechanism for "Pod6". The day people have to think about what dialect of Pod they're using is the day 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: [Fwd: Re: [RFC] A more extensible/flexible POD (ROUGH-DRAFT)]

2005-03-17 Thread Brent &#x27;Dax&#x27; Royal-Gordon
east, Pod has five goals: 1. Simple. 2. Adequate. 3. Easy to write. 4. Easy 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: A possible solution for s?pintf

2005-03-12 Thread Brent &#x27;Dax&#x27; Royal-Gordon
polate method calls as well. You can even do something like this if you 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',

Re: some misc Perl 6 questions

2005-03-09 Thread Brent &#x27;Dax&#x27; Royal-Gordon
o for the relationship to work both ways, each class would have to mark 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: Optional binding

2005-03-06 Thread Brent &#x27;Dax&#x27; Royal-Gordon
); y = 1 2 3; z = The $y is implicitly typed Any, and Ref 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: Sets vs Junctions

2005-02-22 Thread Brent &#x27;Dax&#x27; Royal-Gordon
hich could easily 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: Junction Values

2005-02-19 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Perl 6 scalar 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 hack

Re: Lingering questions about Junctions.

2005-02-19 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ne(3,4) cmp all(2,5) = undef (no conditions match) one(3,4) cmp any(1,6) = undef (no conditions match) any(1,6) cmp one(3,4) = undef (no conditions match) Happily, all of these are commutative (is this generally true?), and the Cs 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-18 Thread Brent &#x27;Dax&#x27; Royal-Gordon
call to C to be junctions, the object argument is another matter entirely: #!/usr/bin/perl6 # naive tee $OUT=$OUT & open("> $_") for @ARGS; print or die "Can't write to $!.filename: $!" 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: Junction Values

2005-02-18 Thread Brent &#x27;Dax&#x27; Royal-Gordon
programmers probably won't use the @_ behavior, and likely won't be using slurpy parameters 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 &#x27;Dax&#x27; Royal-Gordon
xt, though I could be wrong.) (The array of junctions is negotiable, by the way; whatever it is, though, it should probably be the same as the default meaning for list 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 &#x27;Dax&#x27; Royal-Gordon
x ** 2", 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' 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-16 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Likewise All so that a newbie doesn't confuzzle himself. Personally, I'd rather have a chain saw than a nail trimmer, even if I'm less likely to hurt myself with the nail trimmer. And it looks like we'll have a warning or stricture to keep newbies from chopping their legs off an

Re: Retry: ITypes and VTypes.

2005-02-05 Thread Brent &#x27;Dax&#x27; Royal-Gordon
, what do you think this does? sub foo(@arr) {...} 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 &quo

Re: Retry: ITypes and VTypes.

2005-02-03 Thread Brent &#x27;Dax&#x27; Royal-Gordon
signatures is correct. That, and types of hash keys. :) 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 ca

Re: forany, forall...

2005-01-16 Thread Brent &#x27;Dax&#x27; Royal-Gordon
on is true for any 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: specifying the key Type for a Hash

2004-12-07 Thread Brent &#x27;Dax&#x27; 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]; > >

Re: specifying the key Type for a Hash

2004-12-07 Thread Brent &#x27;Dax&#x27; Royal-Gordon
select_patients( "SELECT * FROM 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: pull & put (Was: Angle quotes and pointy brackets)

2004-12-04 Thread Brent &#x27;Dax&#x27; Royal-Gordon
h/pull). Why not > rename pop 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 *s

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

2004-12-04 Thread Brent &#x27;Dax&#x27; Royal-Gordon
h 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: iteration (was Re: Angle quotes and pointy brackets)

2004-12-04 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ed for.) Also note that there's no difference between iterating over a lazy copy of an array, and iterating over a lazy copy of a lazy copy of an array, except for the amount of indirection; thus, there would be no need for for() to distinguish between C and C (though both of those forms might

Re: state vs my

2004-12-03 Thread Brent &#x27;Dax&#x27; Royal-Gordon
with an obscure name. my $x if 0; 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: Angle quotes and pointy brackets

2004-12-03 Thread Brent &#x27;Dax&#x27; Royal-Gordon
s nice to exercise Firefox's slick find-in-page interface so much on, say, Apocalypse 12, it'd be more convenient to just have a TOC.] -- 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 &#x27;Dax&#x27; Royal-Gordon
7;t we just be doing: use CGI :standard; anyway? -- 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 &#x27;Dax&#x27; Royal-Gordon
ower, or otherwise unwise. At the point where a filehandle is just an array and you can use most normal array operations on it, I can see not having a special operator for reading a file. Without that, though, I think the metaphor shear of @$fh is too harsh, and the duplication between

Re: Angle quotes and pointy brackets

2004-11-30 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ng". The first one might interfere with pointy 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

Re: Angle quotes and pointy brackets

2004-11-30 Thread Brent &#x27;Dax&#x27; Royal-Gordon
udes Larry's rejection of the idea. -- 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-29 Thread Brent &#x27;Dax&#x27; Royal-Gordon
} use File::Copy qw(mv cp); ... # I do hope we get something better than #line. eval "#line 1 '-me'\n" ~ @ARGS.shift; } } perl -me 'say "This is my one-liner!"' One-liners with no specific support in the core--and it's differ

Re: Angle quotes and pointy brackets

2004-11-28 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ight be able to take a page out of C#'s book with @"" as the short form of the raw quoting construct. (Or something like that--I suspect C# picked @ because it's otherwise unused.) Actually, if we do something else with backticks, we can steal backticks for totally raw quoting...

Re: Perl6/Parrot and Backwards Compatability

2004-10-31 Thread Brent &#x27;Dax&#x27; Royal-Gordon
nie. Ones that muck around in the internals 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

Re: S5: array interpolation

2004-09-15 Thread Brent &#x27;Dax&#x27; Royal-Gordon
'@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' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker There is no cabal. [I currently have a couple Gmail invites--contact me if you're interested.]

Re: Return with no expression

2004-08-24 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Dave Whipp <[EMAIL PROTECTED]> wrote: > > "Brent 'Dax' Royal-Gordon" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > The overloading of 'or' there is (IMHO) far more dangerous than the > > overloading of '::&#

Re: Return with no expression

2004-08-24 Thread Brent &#x27;Dax&#x27; Royal-Gordon
of '::' being discussed in this thread. -- Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker There is no cabal.

Re: A thought for later -- POD tables

2004-08-22 Thread Brent &#x27;Dax&#x27; Royal-Gordon
t; <$> >> | scalar 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' Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker There is no cabal.

Re: Synopsis 4 draft 1

2004-08-20 Thread Brent &#x27;Dax&#x27; Royal-Gordon
nt syntactic group: > > 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|gener

Re: This week's summary

2004-07-28 Thread Brent &#x27;Dax&#x27; 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 <[EMA

Re: This week's summary

2004-07-26 Thread Brent &#x27;Dax&#x27; Royal-Gordon
teacher? *ducks* -- 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 &#x27;Dax&#x27; Royal-Gordon
David Storrs wrote: #!/usr/bin/perl6 #use warnings; # Note that I am NOT explicitly using these #use strict; { no 'warnings'; no 'strict'; # These must be explicitly turned off... no installation_security; # or this would throw warning & error use SomeModule; # use OtherMod

Re: Why do users need FileHandles?

2004-07-24 Thread Brent &#x27;Dax&#x27; Royal-Gordon
lly install from the CPAN 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: xx and re-running

2004-07-23 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ssed 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: String interpolation

2004-07-21 Thread Brent &#x27;Dax&#x27; 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 PROTECT

Re: String interpolation

2004-07-21 Thread Brent &#x27;Dax&#x27; Royal-Gordon
call looks like foo('bar', 'baz'); Hmm...breaks the parallel with {} and []. But it seems to me that &foo.('bar','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,

Re: String interpolation

2004-07-21 Thread Brent &#x27;Dax&#x27; Royal-Gordon
a (gasp!) attribute: my @foo = (1,2,3,4,5); @foo.separator='//'; Roles are nice, but don't forget about the other mechanisms in Perl for such things. [Forgot to send it to the list. 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: enhanced open-funktion

2004-07-15 Thread Brent &#x27;Dax&#x27; Royal-Gordon
r/bin/foo"; $both=open :rw "|/usr/bin/foo"; The pipe would be legal 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: push with lazy lists

2004-07-12 Thread Brent &#x27;Dax&#x27; Royal-Gordon
hing, or a sysadmin killing the program. (Unless 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: if not C<,> then what?

2004-07-09 Thread Brent &#x27;Dax&#x27; Royal-Gordon
identifier exec { foo; bar } 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-Go

Re: C C and lazyness

2004-07-03 Thread Brent &#x27;Dax&#x27; Royal-Gordon
specifically asked for: my @e=grep { even() } :lazy 1..1024; -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

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

2004-07-03 Thread Brent &#x27;Dax&#x27; Royal-Gordon
d have them behave in a reasonable way. (Note: this is all 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: undo()?

2004-07-02 Thread Brent &#x27;Dax&#x27; Royal-Gordon
s 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-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

  1   2   >