perl6-language@perl.org

2006-01-26 Thread Stevan Little
On 1/26/06, Rob Kinyon <[EMAIL PROTECTED]> wrote: > On 1/26/06, Stevan Little <[EMAIL PROTECTED]> wrote: > > > If there is need to treat something as a Hash, then provide it with a > > > postcircumfix<{}> and leave it at that. It's highly unlikely that you > > > will want to add Hash-like behavior

perl6-language@perl.org

2006-01-26 Thread Rob Kinyon
On 1/26/06, Stevan Little <[EMAIL PROTECTED]> wrote: > > If there is need to treat something as a Hash, then provide it with a > > postcircumfix<{}> and leave it at that. It's highly unlikely that you > > will want to add Hash-like behavior to something that already has a > > postcircumfix<{}> beca

perl6-language@perl.org

2006-01-26 Thread Stevan Little
On 1/26/06, Rob Kinyon <[EMAIL PROTECTED]> wrote: > On 1/26/06, Stevan Little <[EMAIL PROTECTED]> wrote: > > Actually this might not be a bad approach in this case. Take this for > > instance: > > > > method foo (Foo $self, $key) { > > ((Hash) $self){$key} > > } > > > > The syntax is ugly, but

perl6-language@perl.org

2006-01-26 Thread Rob Kinyon
On 1/26/06, Stevan Little <[EMAIL PROTECTED]> wrote: > Actually this might not be a bad approach in this case. Take this for > instance: > > method foo (Foo $self, $key) { > ((Hash) $self){$key} > } > > The syntax is ugly, but it makes what you are doing more explicit. I > would also think tha

perl6-language@perl.org

2006-01-26 Thread Stevan Little
On 1/25/06, Jonathan Lang <[EMAIL PROTECTED]> wrote: > Larry Wall wrote: > > But my hunch is that it's > > a deep tagmemic/metaphorical problem we're trying to solve here. > > Such issues arise whenever you start making statements of the form > > "I want to use an A as if it were a B." The problem