Re: [ANN] HOM paper available
Re: [ANN] HOM paper available
- Subject: Re: [ANN] HOM paper available
- From: T Reaves <email@hidden>
- Date: Tue, 13 Sep 2005 08:40:58 -0500
On Sep 13, 2005, at 4:25 AM, Marco Scheurer wrote:
I think more difficult for any casual reader of the code. I
didn't paste the example into the e-mail, but I was specifically
referring to the keyword 'each'.
I suppose this is about
alice do addReport: sally reports each.
When I add one collection to another, sending the message 'each'
to one of the collections I don't think makes much sense to anyone
reading it, with the possible exception of the code's author.
I believe that this would not be a choice of the code's author, but
a convention of the HOM library, and that as such it should make
sense to anyone reading it. My understanding is that "collect",
"select", "ifResponds", etc. and "each" would be available and used
as is, not reinvented. It's just another selector to know about.
What I mead by a hybrid is exactly what the word hybrid means:
a combination of the two. So, again from the above referenced
example, you'd use HOM on the receiving object as it was presented
in the paper, but not to the second object who's collection was to
be added to the first objects. So there would be one HOM message,
and one non-HOM message.
I don't understand, can you write it down?
Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
Using the above example
alice do addReport: sally reports each;
would simply become
alice do addReport: sally reports;
So here the HOM is 'alice do addReport:'; when combined with the
standard message 'sally reports' you'd have a hybrid. Just because
'sally reports each' can be done as a HOM does not mean it
should! ;) Here we have the ability to use a HOM to make it clear
what we are doing to alice, while relying on the standard message to
sally to get her reports. A good combination of both, i think.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden