Re: Documentary annotations: $what doc

2005-04-02 Thread Larry Wall
On Sat, Apr 02, 2005 at 03:19:33PM +0800, Sam Vilain wrote: : Luke Palmer wrote: : >>Supposing I had a "doc" trait, could I say: : >> sub f2c (Num $temp doc) : >> doc : >> {...} : >>Or would I be forced to spell it doc('stuff') ? : >Well, first you need an `is` somewhere in there. And

Re: Documentary annotations: $what doc

2005-04-01 Thread Sam Vilain
Luke Palmer wrote: Supposing I had a "doc" trait, could I say: sub f2c (Num $temp doc) doc {...} Or would I be forced to spell it doc('stuff') ? Well, first you need an `is` somewhere in there. And after that I think you'll need to do it in doc('stuff') form. If we did allow doc<>,

Re: Documentary annotations: $what doc

2005-04-01 Thread Chip Salzenberg
According to Abhijit Mahabal: > sub f2c (Num $temp doc "Temperature in degrees F") {...} Nce. -- Chip Salzenberg- a.k.a. -<[EMAIL PROTECTED]> Open Source is not an excuse to write fun code then leave the actual work to others.

Re: Documentary annotations: $what doc

2005-03-31 Thread Ashley Winters
Chip Salzenberg writes: > I'd like to annotate Perl 6 parameters and other entities using > traits, since that's the best way (I know of) to have them appear > immediately in the text of the program where they are. > > Supposing I had a "doc" trait, could I say: > > sub f2c (Num $temp doc) >

Re: Documentary annotations: $what doc

2005-03-31 Thread Michael Walter
Make "is" polymorphic :D Michael On Thu, 31 Mar 2005 21:24:52 -0500 (EST), Abhijit Mahabal <[EMAIL PROTECTED]> wrote: > On Thu, 31 Mar 2005, Luke Palmer wrote: > > > Chip Salzenberg writes: > >> I'd like to annotate Perl 6 parameters and other entities using > >> traits, since that's the best w

Re: Documentary annotations: $what doc

2005-03-31 Thread Abhijit Mahabal
On Thu, 31 Mar 2005, Luke Palmer wrote: Chip Salzenberg writes: I'd like to annotate Perl 6 parameters and other entities using traits, since that's the best way (I know of) to have them appear immediately in the text of the program where they are. Supposing I had a "doc" trait, could I say: su

Re: Documentary annotations: $what doc

2005-03-31 Thread Luke Palmer
Chip Salzenberg writes: > I'd like to annotate Perl 6 parameters and other entities using > traits, since that's the best way (I know of) to have them appear > immediately in the text of the program where they are. > > Supposing I had a "doc" trait, could I say: > > sub f2c (Num $temp doc) >

Documentary annotations: $what doc

2005-03-31 Thread Chip Salzenberg
I'd like to annotate Perl 6 parameters and other entities using traits, since that's the best way (I know of) to have them appear immediately in the text of the program where they are. Supposing I had a "doc" trait, could I say: sub f2c (Num $temp doc) doc {...} Or would I be for