Is it possible to define my own infix function/operator in CoffeeScript (or in pure JavaScript)? e.g. I want to call
a foo b
or
You can with sweet.js. See:
Sweet.js extends Javascript with macros.
It acts like a preprocessor.