4 ms·
The syntax looks cute for one-lined request handler functions. I wonder how it stacks up for larger, multi-line functions. Heck, you're pretty close to sexps
by z8000 17y ago
The syntax looks cute for one-lined request handler functions. I wonder how it stacks up for larger, multi-line functions. Heck, you're pretty close to sexps (I kid!).
- tr4nslator 17y agoIt's vaguely lispy, but without all that nesting. Multi-line functions work okay, but it's definitely cleaner to name them and put them somewhere else so that your code ends up looking like a site map: http://gist.github.com/287475#file_hello_middleware.js http://gist.github.com/287475#file_hello_middleware.js