jashkenas/coffee-script — Issue #2189: Add support for `define` keyboard similar to C pre-processor.
Author: alFReD-NSH
Created: 2012-03-10 07:46:52+00:00
State: open

In C when we write `#define SOAD SYSTEMOFADOWN` , the pre-processor will simply replace all SOAD variables with SYSTEMOFADOWN. Also we can have inline functoins: `#define sq(x) x*x`.

This makes us be able to write optimized code with less function calls and cleaner code.