jashkenas/coffee-script — Issue #1836: Simple syntax for procedures vs. functions
Author: rnpandya
Created: 2011-11-08 14:54:49+00:00
State: open

A large fraction of my CoffeeScript functions don't return a value, and I frequently find myself adding "return" to avoid generating the code to construct a return value (e.g. if the last statement is a loop). It would be convenient, and would add useful documentation, if there were a very easy way to specify that a function did not return a value, e.g. using "-->" or "==>" instead of "->" and "=>".