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]
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