Skip to content

Instantly share code, notes, and snippets.

@guillaumerose
Created February 28, 2012 17:44
Show Gist options
  • Save guillaumerose/1933911 to your computer and use it in GitHub Desktop.
Save guillaumerose/1933911 to your computer and use it in GitHub Desktop.
CoffeeScript + Rhino
hello = (name) ->
print "Hello #{name} !"
hello "Java"
(function() {
var hello;
hello = function(name) {
return print("Hello " + name + " !");
};
hello("Java");
}).call(this);
~/tmp/coffeerhino% coffee -c func.coffee
~/tmp/coffeerhino% rhino func.js
Hello Java !
~/tmp/coffeerhino%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment