An other good example is constructors; say you have a function like this:
function MyClass(x){
this.x = x;
}
In Coffeescript this translates to MyClass = (x) ->
@x = x
`x` is returned; and if you return something from a constructor, something is returned instead of the constructed object (`new MyClass({})` returns `{}`).
You should expect this from a compiler, actually
> In my opinion, js functions should always return a value
Sounds wrong
> real code example of where your program would fail because of this?
Simple: