Why not use object literals to create beautiful DSL in Javascript?
Coming from Ruby to Javascript, creating DSL now seems not as fun as in Ruby where it was very beautiful and elegant. Ruby Rake: task :hello do # do stuff end task :hello => [:dep1, :dep2] do # do stuff end Javascript Jake: task("hello", function() { // do stuff }); task("hello", ["deep1", "deep2"], function() { // do ...