Results 49 comments of Yin Zhong

I agree that in both cases your code should compile to an (array of dicts) literal. Minimal breaking example: ``` livescript a = * A: 1 B: 2 * C:...

Starting to believe it's fundamental to how current parser is structured. Meanwhile, a marginally better fix for your code: ``` livescript [ 1 to 5] |> map -> return *...

I realized that function body _is_ an implicit list, so implicit return of **last item of the list** is actually the correct semantics... Can't really blame lexer for this :wink:

@rhendric I believe that this behavior (`func do then (implicit-list)`) should not change. It has become a "feature". We need better documentation that explains the semantics of `*` (hopefully without...

More ideas: `for x iterating f!`, `iterate x in f!`

``` livescript x = [] i = 5 while i

> but the topic is not really about the job I understand your intent. However, keep in mind that `for` in LSC has "foreach" semantics (i.e. iterator loop) which has...

> but I felt that this small change would produce cleaner code. in a backwards-incompatible way

LiveScript just updated dependencies and this also hit us.

@heavyk what you mentioned is probably the number 1 nasty surprise of LiveScript, but rest assured this is the intended semantics. OTOH what OP posted I agree should be fixed.