Skip to content

Instantly share code, notes, and snippets.

@nilium
Created April 30, 2012 19:35
Show Gist options
  • Select an option

  • Save nilium/2561942 to your computer and use it in GitHub Desktop.

Select an option

Save nilium/2561942 to your computer and use it in GitHub Desktop.
# this
class foo {
class sublcass < foo {
woop(derp) -> {
derp(derp)
}
}
}
# is the same as this
foo = class {
subclass = class < this {
woop = (derp) -> {
derp(derp)
}
}
}
# and this
export class bar < foo {
ctor -> {
}
}
# is the same as this
export bar = class < foo {
ctor = -> {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment