Skip to content

Instantly share code, notes, and snippets.

@jherdman
Created June 1, 2010 02:33
Show Gist options
  • Save jherdman/420494 to your computer and use it in GitHub Desktop.
Save jherdman/420494 to your computer and use it in GitHub Desktop.
// In Crockford-JS, I'd do something like this...
var myFunction = function (args) {
var foo
, bar
, baz;
// function body...
}
// But I see this in the Obj-J tutorials...
- (Foo)myFunction:(Bar)arg
{
var foo = ...;
// do stuff with foo
var bar = ...;
// etc.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment