supply and demand (was: Roles and Mix-ins?)

2004-01-07 Thread Jonathan Lang
Austin Hastings wrote: Jonathan Lang wrote: Austin Hastings wrote: There's two ways to look at that. One way is to say: I'm going to define an interface as being this OTHER thing minus a method. That seems like a positive construction, and supporting it might be desirable. The

Re: This week's summary

2004-01-07 Thread Piers Cawley
[EMAIL PROTECTED] (Peter Scott) writes: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Austin Hastings) writes: PS: While I'm somewhat sympathetic to the fact that eu guys are trying to spin up 200 years worth of amendments and supreme court decisions at the same time, it's still a ratf*ck.

Re: Roles and Mix-ins?

2004-01-07 Thread Piers Cawley
Jonathan Lang [EMAIL PROTECTED] writes: Luke Palmer wrote: Renaming methods defeats the purpose of roles. Roles are like interfaces inside-out. They guarantee a set of methods -- an interface -- except they provide the implementation to (in terms of other, required methods). Renaming the

Re: Roles and Mix-ins?

2004-01-07 Thread Piers Cawley
Joe Gottman [EMAIL PROTECTED] writes: - Original Message - From: Luke Palmer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 4:51 AM Subject: [perl] Re: Roles and Mix-ins? David Storrs writes: On Sat, Dec 13, 2003 at 11:12:31AM -0800, Larry Wall wrote:

Re: A modest question

2004-01-07 Thread Piers Cawley
chromatic [EMAIL PROTECTED] writes: On Tue, 2004-01-06 at 22:26, Austin Hastings wrote: So on the grand balance of utility, what are the metrics that traits are supposed to help improve? Two big ones: - naming collections of behavior that are too fine-grained to fit into classes

Re: A modest question

2004-01-07 Thread Jonathan Lang
Piers Cawley wrote: Why does it have to be a String, though? What prevents it from working with anything that can stringify, besides the overly restrictive signature? What if you could say (the Perl 6 equivalent of): sub print_it ( does Stringify $thingie ) {

RE: supply and demand (was: Roles and Mix-ins?)

2004-01-07 Thread Austin Hastings
From: Jonathan Lang [mailto:[EMAIL PROTECTED] Austin Hastings wrote: Jonathan Lang wrote: Austin Hastings wrote: There's two ways to look at that. One way is to say: I'm going to define an interface as being this OTHER thing minus a method. That seems like a positive

RE: A modest question

2004-01-07 Thread Austin Hastings
From: Jonathan Lang [mailto:[EMAIL PROTECTED] Piers Cawley wrote: Why does it have to be a String, though? What prevents it from working with anything that can stringify, besides the overly restrictive signature? What if you could say (the Perl 6 equivalent of): sub

Re: This week's summary

2004-01-07 Thread Mik Firestone
Sayeth the Summarizer: Asked for pithy comments, chromatic gave good pith, noting that if he 'had a test case from everyone who asked When'll it be done and code to pass a test case from everyone who said I'd like to help, but I don't know where to start...' then he'd happily check

RE: A modest question

2004-01-07 Thread Jonathan Lang
Austin Hastings wrote: Jonathan Lang wrote: Maybe as an alternative to role Stringify {must stringify();} sub print_it (Stringify $thingie) {print $thingie.stringify();} you might be able to say sub print_it ($thingie must stringify()) { print

Re: A modest question

2004-01-07 Thread chromatic
On Wed, 2004-01-07 at 00:43, Jonathan Lang wrote: Maybe as an alternative to role Stringify {must stringify();} sub print_it (Stringify $thingie) {print $thingie.stringify();} you might be able to say sub print_it ($thingie must stringify()) {print $thingie.stringify();}