Re: Interface lists (was Re: Interfaces)

2002-09-30 Thread Frank Wojcik
On Mon, Sep 30, 2002 at 11:16:20PM -0400, Michael G Schwern wrote: > How about seperated by commas, like any other list? > > method foo is fungible, private, integer { Well, if we're going to use a /list/, how about method foo ($param) ^is (fungible, private, integer) { ? :)

Subject-Oriented Programming

2002-09-30 Thread Michael G Schwern
Last year at JAOO I stumbled on this thing called Subject-Oriented Programming which looked interesting. I dug up some papers on the subject and tried to make an implementation but found I really didn't properly understand it and the papers were too bogged down in C++ implementation details to re

Re: Interfaces

2002-09-30 Thread Michael G Schwern
On Mon, Sep 30, 2002 at 06:04:28PM -0700, David Whipp wrote: > On a slightly different note, if we have interfaces then I'd really > like to follow the Eiffel model: features such as renaming methods > in the derived class may seem a bit strange; but they can be useful > if you have have name-conf

Interface lists (was Re: Interfaces)

2002-09-30 Thread Michael G Schwern
On Tue, Oct 01, 2002 at 01:36:19AM +0100, Simon Cozens wrote: > [EMAIL PROTECTED] (Michael G Schwern) writes: > > method _do_internal_init ($num) is private { > > Just thinking aloud, would > sub foo is method is private is integer is fungible { > > be better written as > su

RE: Interfaces

2002-09-30 Thread David Whipp
Michael Lazzaro wrote: > > What if a subclass adds extra, optional arguments to a > > method, is that ok? > > This is the scariest question, I think... In theory, yes, there are > lots of potential interfaces that would benefit from optional > extensions, & I've made a few. In strict terms,

Re: Interfaces

2002-09-30 Thread Simon Cozens
[EMAIL PROTECTED] (Michael G Schwern) writes: > method _do_internal_init ($num) is private { Just thinking aloud, would sub foo is method is private is integer is fungible { be better written as sub foo is fungible private integer method { or not? -- Those who do not un

Re: Interfaces

2002-09-30 Thread Michael G Schwern
On Mon, Sep 30, 2002 at 10:12:48AM -0700, Michael Lazzaro wrote: > Heck, I'll jump into this one, since I've been working in _way_ too > many OO variations lately, some of them inflicted upon myself. While I > hope perl6 will allow extendable OO methodologies, the out-of-box one > needs to be

Re: Passing arguments

2002-09-30 Thread Paul Johnson
On Sun, Sep 29, 2002 at 09:31:46PM -, Smylers wrote: > Consider this Perl 5: > > while (<>) > { > # ... > foreach my $fruit (qw) > { > # ... > } > } > > Inside the inner loop C<$_> still holds the current line. In the > equivalent Perl 6 syntax, insider the inne

Re: Interfaces

2002-09-30 Thread Michael Lazzaro
On Sunday, September 29, 2002, at 05:11 PM, Michael G Schwern wrote: > Here's some open problems: > > Would this be the default behavior for overridden methods, or will the > parent class/methods have to be declared "is interface" for the > signatures > to be enforced on subclasses? Heck, I'll