jashkenas/coffee-script — Issue #1948: Inlining keyword
Author: Tapsi
Created: 2011-12-19 17:36:07+00:00
State: open

What about a new feature?
What I always missed in superset languages for js is a feature to inlining functions. I love diving my source into separated functions. But in JS it will be slow as hell, because you have a lot of function calls...

Cool would be

inline function fName(x){
x++
}

x = 10
fName x

will be compiled to

x = 10
x++

Greets Alex