Adding some examples #15

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@Gozala
Gozala commented Apr 24, 2012

Comparison with node.js would have helped my a lot few days ago.

@swannodette
Collaborator

If we're going to talk about Node.js we should make a new subsection. The last bit is not equivalent to extending to default in ClojureScript since these work for nil. You cannot add methods to null in JavaScript.

@Gozala
Gozala commented Apr 24, 2012

The last bit is not equivalent to extending to default in ClojureScript since these work for nil.
You cannot add methods to null in JavaScript.

Fare enough, but it works for the example there. Maybe adding one more line like:

(null).sound() // Error

would demonstrate it all.

As for node comperisons, I would have found that super useful few days ago :)

As a matter of fact I thin all these would be far more useful on clojurescript wiki, mainly because it would be easier to add more examples.

@fogus
Owner
fogus commented May 22, 2013

I think I agree with David. A node-synonyms section would be ideal.

@fogus fogus closed this May 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment