*> 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...
 
Am Donnerstag, 31. Januar 2013 08:19:51 UTC+1 schrieb fengchu...@gmail.com:
>
> 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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
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 nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to