leafo/moonscript — Issue #16: declarations
Author: dvv
Created: 2011-10-12 20:34:37+00:00
State: open

Hi!

Noticed the absense (or am unaware) of the following patterns:

- just declaration of a number of variables: `local foo, bar` -- what would be moonscript for this?
- combined declaration and assignment to a global: `export foo = () -> 'bar'`. Allowed is first to `export foo` and then `foo = () -> 'bar'`. In modules it's natural to define local variables and functions and then `export` them at the bottom of the file.

Please, comment

TIA,
--Vladimir