Closed anhnhoktvn closed 4 years ago
Ah, the oft-misunderstood implicit structure asterisk. Though it seems many users disagree with this design decision, it is in fact functioning as documented. The key thing to understand is that *
does not create a list; it only separates the two objects from each other. In some contexts like the right-hand side of an assignment, two expressions next to each other at the same level of indentation are implicitly converted to a list. But for obvious reasons, the body of a function is not such a context. See https://github.com/gkz/LiveScript/issues/1055#issuecomment-402785740 for a workaround and links to other duplicate reports of this ‘issue’.
I expect
will be converted to
but it is converted to: