Skip to content

Instantly share code, notes, and snippets.

@max-mapper
Forked from voodootikigod/gist:1007426
Created June 4, 2011 05:14
Show Gist options
  • Save max-mapper/1007605 to your computer and use it in GitHub Desktop.
Save max-mapper/1007605 to your computer and use it in GitHub Desktop.
BS ≈ BreakfastScript
Conditionals
( false :)
console.log "if"
:( true )
console.log "else if"
:()
console.log "else"
Function definition
// Bacon equal == function definition RHS
name ≈ (var1, var2) {
#var1 //waffle == return
}
variable setting
// Sausage links equal == set value from RHS
name = "boo"
Array Comprehension
// OJ operations -- array passed in left side, right side available as oj returns array.
\ arr _ oj*2 /
Closures
// Apply eggs to bacon for closure scoping
name (%)≈ (var1) { console.log('locked forever in closure scope', var1) }
Templating
// uses the Muffins templating DSL, which is based on the muffin operator: [)
// bake a variable into a muffin
bake "hello [var)", {var: "world"}
@victusfate
Copy link

I'm getting hungry

no CoffeeScript love :()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment