oh, Rick, don't give me that :) suddenly there is no "functional style" dom 
system. the point is that almost everybody just passes a function instead 
of an object to listen. and you know that, for sure. 

Am Donnerstag, 31. Januar 2013 19:04:26 UTC+1 schrieb Rick Waldron:
>
>
>
>
> On Thu, Jan 31, 2013 at 4:05 AM, greelgorke <[email protected]<javascript:>
> > wrote:
>
>> *> xxx.addListenner ('dom', new ClickListener () {...});*
>>
>> You can do this already in the DOM - Api. EventListener interface is 
>> there in the spec. nearly nobody use it, instead functional style is 
>> preferred. i don't know why, but may because it shines more...
>
>
> Did you mean to say "instead functional style is preferred"? If so, I've 
> love to see some examples of a "functional style" DOM event system that is 
> "preferred".
>
> Rick
>
>  
>
>>  
>> Am Donnerstag, 31. Januar 2013 08:19:51 UTC+1 schrieb 
>> [email protected]:
>>
>>> In the previous post, I wrote these:
>>> "The function style shouldn't be used in open JS class libraries."
>>>
>>> Someone replied me with email, he did not agree this.
>>> *"I respectfully disagree. I think that as a functional language, 
>>> function style should be embraced."*
>>>
>>> I think the reason maybe my english is poor, can not express all of my 
>>> views.So I replied his mail and wrote:
>>> *"In fact, the functional programming style has long been used in those 
>>> JS OO frameworks.
>>> xxx.on ('dom', 'click', function () {...});
>>> Almost all JS framework will such design. This is advantage of the easy 
>>> style of JS anonymous function.
>>>
>>> If in Java, the code should like this:
>>> xxx.addListenner ('dom', new ClickListener () {...});
>>>
>>> In class-based system architecture design, the functional programming 
>>> style will be more shine."*
>>>
>>> I'm planing to write a "Javascrpt Bundle Specification".
>>> In addition, I would want to put "Jsdocx Specification" on github I 
>>> wrote a few years ago.
>>>
>>> FengChun
>>
>>  -- 
>> -- 
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines: 
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to