Nabil Kadimi
Nabil Kadimi

Reputation: 10394

How to evaluate expression on compilation?

Is it possible to somehow tell coffeescript to interpret arithmetic operations, so things like eleven = 10 + 1 compile to eleven = 11;?

Example on coffescript.org

Upvotes: 1

Views: 45

Answers (1)

Cliff Stanford
Cliff Stanford

Reputation: 614

No. Coffeescript simply generates javascript. It does not perform any mathematical preprocessing.

Upvotes: 2

Related Questions