In this case, the queue code must .apply our arguments to our "functions". But our URL instances do not support call/apply — call(ctx, arg, cb) might issue an HTTP "CALL" request at best, and apply() just extends the URL oddly!
I wonder if it'd work to have () return a String object instead of a primitive string — then we could assign its own call/apply properties and the code would be rewritten like so:
Consider this code:
In this case, the queue code must .apply our arguments to our "functions". But our URL instances do not support
call
/apply
—call(ctx, arg, cb)
might issue an HTTP "CALL" request at best, andapply()
just extends the URL oddly!I wonder if it'd work to have () return a String object instead of a primitive string — then we could assign its own call/apply properties and the code would be rewritten like so:
.defer(api.calculator.post(), "sin(2.71828182846)")
Kinda odd/hacky, but not sure a better way to support this situation.