(proto)typing, return types, polymorphism, ... ?

2001-07-04 Thread Chris Hostetter
A few questions regarding typing. (first some assumptions/axioms) Axiom #1: perl6 will enable programs to be more explicit about the typing of variables -- even allowing them to specify dynamic-ish properties about the values in those variables. Damian's Attribute::Types has examples like this

Re: suggested properties of operator results

2001-06-11 Thread Chris Hostetter
For the record, bwarnock pointed out to me that damian allready proposed this behavior in RFC 25... http://dev.perl.org/rfc/25.html That RFC doesn't suggest having the comparison operators set properties on their result -- instead it recomends that "multiple chained comparisons should b

suggested properties of operator results

2001-06-08 Thread Chris Hostetter
Currently, this expression: VALUE1 < VALUE2 is functionally equivalent to this: $v2 = VALUE2; $v1 = VALUE1; return ($v2-$v1 == abs($v2-$v1)); After reading the Apocalypse & Exegesis articles, and seeing some examples of properties and the "is" operator, I'd lik