Skip to content

Instantly share code, notes, and snippets.

@bloodyowl
Created March 21, 2014 11:01
Show Gist options
  • Save bloodyowl/9683838 to your computer and use it in GitHub Desktop.
Save bloodyowl/9683838 to your computer and use it in GitHub Desktop.
hodor spec

hodor spec

0. key concepts

  • all hodor belong the the hodor scope
  • everything is a hodor
  • hodor are first-class citizens

1. the hodor operator

  • let hodor be a hodor object
  • for each own hodor, hodor
  • return hodor

2. the hodor keyword

  • let hodor be the right operand
  • return the HODOR internal property of hodor

3. the hodor function

  • let hodor be the first parameter
  • return hodor if the the HODOR internal property strictly equals HODOR
  • return HODOR

4. variable declartion

  • let hodor be the variable name
  • if hodor equals hodor attribute the value to the hodor
  • otherwise throw hodor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment