Re: s29 and Complex numbers

2006-02-28 Thread David Green
On 2/23/06, Jonathan Lang wrote: (Another possibility would be to return a list of every possible result when in list context, with the result that you'd get in scalar context being element zero of the list. This even has its uses wrt sqrt(Num), providing a two-element list of the positive

Re: s29 and Complex numbers

2006-02-28 Thread Mark A. Biggar
David Green wrote: On 2/23/06, Jonathan Lang wrote: (Another possibility would be to return a list of every possible result when in list context, with the result that you'd get in scalar context being element zero of the list. This even has its uses wrt sqrt(Num), providing a two-element

[svn:perl6-synopsis] r7898 - doc/trunk/design/syn

2006-02-28 Thread autrijus
Author: autrijus Date: Tue Feb 28 07:22:23 2006 New Revision: 7898 Modified: doc/trunk/design/syn/S05.pod Log: * S05: Generalizing +$/ and ~$/ delegating to $(), by stipulating that all explicit coercion forms, except for boolean, dispatch from Match to its result object. Modified:

Re: s29 and Complex numbers

2006-02-28 Thread Jonathan Lang
Mark A. Biggar wrote: For the complex trig functions the result set is infinite with no obvious order to return the list in even lazily that provides anything useful. Technically, the result set is one element (the principle value), since a mathematical function - by definition - produces a

Re: s29 and Complex numbers

2006-02-28 Thread Jonathan Lang
Doug McNutt wrote: Jonathan Lang wrote: Technically, the result set is one element (the principle value), since a mathematical function - by definition - produces a single result for any given input. Please be careful of definitions like that. Computer science has quite different ideas