Jann
Jann
@ceymard Why not just `void`? ``` function myfunc (arg, [options], callback) void ```
Uh, I misunderstood your proposal, sorry.
@satyr In https://github.com/satyr/coco/blob/master/src/ast.co#L2005, just inline the function if we're in the special mode. ``` function utility if "(#{UTILITIES[it]})" else Scope.root.assign \__ + it, UTILITIES[it] ``` Apart from bloating the compiled...
@ceymard That function is used like this: ``` case \^ then return "#{ utility \clone }(#{ it.compile o, LEVEL_LIST })" ``` So, normally, `utility(name)` makes sure that the helper function...
The output would look like this: ``` function a(arg){ return (function __import(obj, src){ var own = {}.hasOwnProperty; for (var key in src) if (own.call(src, key)) obj[key] = src[key]; return obj;...
Uh, if that's your question, I didn't think about how to turn that on/off.
@satyr He said "the functions", not "the operators". How about this? ``` (foo, bar) inlined -> a
I really understand the couch usecase. When I have a bunch of small map functions, I don't want one file for each. So, I have to manually read in the...
@ceymard Time to build an inlining postprocessor for JS! :D If you're interested, you might want to use https://github.com/thejh/node-astjourney for that - it can read the JS AST into a...
@ceymard Actually, wouldn't a preprocessor that can also inline your own helpers be better?