proposal: rename 'subtype' declarator to 'set'

2005-11-09 Thread TSa
Larry Wall wrote: > On Mon, Nov 07, 2005 at 01:05:16PM +0100, TSa wrote: > : With the introduction of kind capture variables ^T we could complety > : drop the subtype special form. As you pointed out the adding of > : constraints happens with the where clause anyway. Thus we return to > : the usag

Test Case: Complex Numbers

2005-11-09 Thread Jonathan Lang
The following is an attempt to put a number of Perl6 concepts into practice, in order to see how useful and intuitive they actually are. Complex numbers come in two representations: rectilinear coordinates and polar coordinates: class complexRectilinear { has $.x, $.y; method infix:+ ($a is c