gkz / LiveScript

LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.
http://livescript.net
MIT License
2.32k stars 155 forks source link

fix gkz/LiveScript#1038 #1073

Closed rhendric closed 5 years ago

rhendric commented 5 years ago

Expressions such as [a: 1 2 3] should be equivalent to [{a: 1}, 2, 3] and not [{a: 1, 2: 2, 3: 3}]. Property shorthand, including atomic identifiers/literals as shorthand for key-value pairs with the atom as the key and value, should not work outside of braces.


This is technically a breaking change, though a relatively minor one. I'll hold this open for comments for two weeks, merging on or after Oct 25 if there are no objections.