in reply to Re: RFC: Sub::Attributes -- alter subroutine context behavior with attributes
in thread RFC: Sub::Attributes -- alter subroutine context behavior with attributes

Sub::Context (by chromatic) exists on CPAN and does context sensitive dispatch; I think your suggestions would muddy the existing namespace. Since this is attribute based, and people are already aware of wantarray and probably Want, I'd suggest some variation of: Attribute::Want or Sub::Attribute::Want, or maybe using 'context': Attribute::Context.

  • Comment on Re: Re: RFC: Sub::Attributes -- alter subroutine context behavior with attributes

Replies are listed 'Best First'.
Re: Re: Re: RFC: Sub::Attributes -- alter subroutine context behavior with attributes
by simonm (Vicar) on Dec 10, 2003 at 19:20 UTC
    ++ to the idea of changing the name to put this in the Attribute:: hierarchy, which seems to be where other such packages have tended to end up. Perhaps Attribute::ArrayContext?