simonask / snow-deprecated

(ATTENTION WATCHERS: This repository is deprecated. Please watch 'snow' instead.) Snow is a simple, dynamic, and expressive programming language with an emphasis on speed and simplicity. Snow is fully object-oriented, and fully function-oriented at the same time.
http://snow.meta.io/
Other
21 stars 1 forks source link

Calling closures at definition #29

Closed ghost closed 15 years ago

ghost commented 15 years ago

The reason this works in Interactive Snow

{ return it }(60)   //=> 60

is an error in the parser.

This would give the same result:

{ return 78 }(60)  // => 60

This shouldn't be possible at all. Will look into it.

ghost commented 15 years ago

Aha! This one is a side-effect of bug #49 - fixing that will fix this.