Skip to content

Instantly share code, notes, and snippets.

@deanrad
Created April 27, 2014 15:21
Show Gist options
  • Select an option

  • Save deanrad/11348304 to your computer and use it in GitHub Desktop.

Select an option

Save deanrad/11348304 to your computer and use it in GitHub Desktop.
Alternate requirejs syntax
# TL;DR: Instead of a verb-oriented 'define' function with anonymous arguments, a
# 'descriptive' function with named arguments
#
module deps:[‘a’, ‘b’], factory:(a, b)->
# compare with
define ['a', 'b'], (a, b) ->
# module 'BlahBlah', deps:[‘a’, ‘b’], factory:(a, b)->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment