Skip to content

Instantly share code, notes, and snippets.

@slant
Created January 22, 2012 01:23
Show Gist options
  • Select an option

  • Save slant/1654908 to your computer and use it in GitHub Desktop.

Select an option

Save slant/1654908 to your computer and use it in GitHub Desktop.
Language comparisons
thing = {
say: function(something){ return something; }
}
document.write(thing.say('hello'))
class Thing:
def say(self, something):
return something
print Thing().say('hello')
class Thing
def say something
something
end
end
puts Thing.new.say 'hello'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment