Re: Transparent / Opaque references

2005-05-28 Thread Damian Conway
Brent 'Dax' Royal-Gordon wrote: 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. There's a less-well-known hack that *is* truly anonymous: $ano

Re: Transparent / Opaque references = Link / Ref

2005-05-28 Thread Thomas Sandlass
Luke wrote: > Both transparent dereferencing (infinite $$foo) and > opaque dereferencing (one-level $$foo) have their uses, but they are > definitely distinct. Well, they are more like variations on a theme. > Instead of adding different syntax for each > kind, I'll propose something differen

RE: Transparent / Opaque references

2005-05-28 Thread Thomas Sandlass
Luke wrote: > Both transparent dereferencing (infinite $$foo) and > opaque dereferencing (one-level $$foo) have their uses, but they are > definitely distinct. Well, they are more like variations on a theme. > Instead of adding different syntax for each > kind, I'll propose something different:

RE: Transparent / Opaque references = Link / Ref

2005-05-28 Thread Thomas Sandlass
Luke wrote: > Both transparent dereferencing (infinite $$foo) and > opaque dereferencing (one-level $$foo) have their uses, but they are > definitely distinct. Well, they are more like variations on a theme. > Instead of adding different syntax for each > kind, I'll propose something different:

Re: comprehensive list of perl6 rule tokens

2005-05-28 Thread Jonathan Scott Duff
On Sat, May 28, 2005 at 12:58:01AM -0400, Jeff 'japhy' Pinyan wrote: >[ set notation for character classes ] > > What say you? Off the top of my head I think using & and | within character classes will cause confusion. / (<~(X & Y) | Z> | ) & / So much for the "visual pill" of Also,

RE: Transparent / Opaque references

2005-05-28 Thread Thomas Sandlass
Juerd wrote: > The only real problem with having only infix := for binding, is that you > can't easily use an alias (aka transparent reference) in a list. You can > have an array of aliases, but it's harder to have an array or hash in > which one element is an alias. Binding can be done explicitly:

Re: Transparent / Opaque references

2005-05-28 Thread Juerd
Thomas Sandlass skribis 2005-05-28 17:34 (+0200): > >%hash = { key => undef, foo => 'bar' }; > >%hash := $variable; > >%hash = 5; # $variable is now 5 too > Sorry to interrupt, but wasn't {} not derefed when assigned > to a % variable? Don't get me wrong, I like this meaning. And > it

Re: comprehensive list of perl6 rule tokens

2005-05-28 Thread mark . a . biggar
I'm having a hard time coming up eith examples where I need anything otehr than union and difference for character classes. Most of the predefined character classes are disjoint, so intersection is almost useless. So for now let's just stick with + and - and simple sets with not parens, unless

Syntax of "use"/"require"

2005-05-28 Thread Rob Kinyon
(This thread is referencing http://www.perlmonks.org/?node_id=461105) I'd like to start writing the Module::Build/ExtUtils::MakeMaker for Pugs. One of the first things that was mentioned was that the syntax for use needs to support specifying the exact version or range of versions you want to have

Re: Default invocant of methods

2005-05-28 Thread Yuval Kogman
On Fri, May 27, 2005 at 22:59:25 +0200, Ingo Blechschmidt wrote: > Hi, > > what is the default invocant of methods? > > method blarb ($normal_param) {...} > # Same as > method blarb (Class | ::?CLASS $invocant: $normal_param) {...} > # or > method blarb (::?CLASS $invocant: $normal_para

function signatures?

2005-05-28 Thread Yuval Kogman
We have a pretty complex declarative language for argument processing in the parameter declaration: types, subtypes, constraint blocks context propagation default values slurpiness arity as a number does not give enough reflection into these properties. Are signat

Re: Syntax of "use"/"require"

2005-05-28 Thread Rob Kinyon
On 5/28/05, Rob Kinyon <[EMAIL PROTECTED]> wrote: > (This thread is referencing http://www.perlmonks.org/?node_id=461105) > > I'd like to start writing the Module::Build/ExtUtils::MakeMaker for > Pugs. One of the first things that was mentioned was that the syntax > for use needs to support specif

Re: Syntax of "use"/"require"

2005-05-28 Thread Rod Adams
Rob Kinyon wrote: On 5/28/05, Rob Kinyon <[EMAIL PROTECTED]> wrote: (This thread is referencing http://www.perlmonks.org/?node_id=461105) I'd like to start writing the Module::Build/ExtUtils::MakeMaker for Pugs. One of the first things that was mentioned was that the syntax for use needs to