Hey guys,
Have any of you taken a look at
mochiscript<https://github.com/jeffsu/mochiscript>?
Its a superset of javascript functionality that includes classes,
inheritance, and some syntactic sugar:
Small example:
> class Person extends Thing {
> function initialize() {
> this.friends = [];
> }
> function sayHi() {
> this.friends.forEach(#{ console.log("hi " + $1) });
> }
> }
At Factual, we've been using (also working on) it for about 4 years now and
its worked out nicely for us.
-Jeff
On Friday, May 6, 2011 12:07:47 AM UTC-7, Thierry Templier wrote:
>
> Hello,
>
> I wonder what is the best / recommended approaches and/or JS libraries
> to use in order to implement OOP within node.js applications.
>
> Thanks very much for your help!
> Thierry
--
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