News for hackers. Stuff that matters.
Re:(fab) - A pure javascript DSL for building async web apps by mmastrac on Thursday January 28, 2010 @12:41PM (#1084430)
I did a double-take looking at that syntax. I assume that fab (and all of the other bracketed expressions) return functions that chain together? Pretty ingenious. Plus you can detect the end of the chain when one of the methods is passed in "fab" again.

I think I can say that this is the best (ab)use of the syntax I've ever seen, well done. :)

Re:(fab) - A pure javascript DSL for building async web apps by tr4nslator on Thursday January 28, 2010 @12:45PM (#1084438)
Yeah, a (fab) function just returns itself. It's like jQuery's chaining, but using argument signatures instead of object methods to delegate work. The last (fab) is just a way to indicate the chain is over so that a listener can be returned, and has the additional benefit of making it look declarative.
Re:(fab) - A pure javascript DSL for building async web apps by netghost on Thursday January 28, 2010 @02:32PM (#1084780)
Thanks for pointing that out, I've been sitting looking at how that could possibly work for a while.