RE: Mutil Method Questions

2006-06-27 Thread Conrad Schneiker
From: Steffen Schwigon [mailto:[EMAIL PROTECTED] Thomas Wittek [EMAIL PROTECTED] writes: Maybe we should steal the ruby principle of least surprise here, which I find a very good principle. I'm quite confident that Larry already stole all good principles he could find. Me too. However

Re: Mutil Method Questions

2006-06-26 Thread Steffen Schwigon
Thomas Wittek [EMAIL PROTECTED] writes: Steffen Schwigon schrieb: At least the many keywords seem to be necessary to map the complexity of different paradigms possible in Perl6. Multimethods are not just overloading as in C++. Second, the different keywords declare different behaviour you can

Re: Mutil Method Questions

2006-06-23 Thread Jonathan Scott Duff
On Fri, Jun 23, 2006 at 06:18:51PM +0300, Markus Laire wrote: multi sub talk (String $msg1, String $msg2) { say $msg1 $msg2 } multi sub talk (String $msg, Int $times) { say $msg x $times; } multi sub talk (String $msg, Num $times) { say Please use an integer; } multi sub talk (String $msg,

Mutil Method Questions

2006-06-21 Thread Chris Yocum
Hi All, At the risk of sounding a bit thick, I have a couple of questions about Perl6's multi keyword and mutilmethod in general. This seems like overloaded functions from C++ so why do we need a key word to declare them rather than using something like C++'s name mangling? Is there