bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
856 stars 59 forks source link

Declaring a temp collection using the wrong syntax causes a confusing Bud::CompileError #310

Closed JoshRosen closed 11 years ago

JoshRosen commented 11 years ago

Attempting to declare a temp collection as

    temp mycollection <= [[]]

instead of

    temp :mycollection <= [[]]

results in a confusing Bud::CompileError during rewriting. This error doesn't reference the temp collection, so it's hard to identify the problem from the full traceback. In contrast, forgetting to use a symbol when defining a collection in a state block results in a helpful syntax error saying that a variable is undefined.

neilconway commented 11 years ago

Thanks for the report.