imba / imba.io

📄The official website of Imba
http://imba.io
MIT License
80 stars 37 forks source link

Array of maps undocumented? #177

Closed eulores closed 2 years ago

eulores commented 3 years ago

At least I didn't find no reference in arrays or objects

For example, this compiles fine

let todos = [
    title:'one'
    completed:false
    -
    title:'two'
    completed:false
    -
    title:'three'
    completed:true
]

and is nicer to read than the alternative

let todos = [{title:'one', completed:false}, {title:'two', completed:false}, {title:'three', completed:true}]
andregoldstein commented 3 years ago

Not sure if this is because this style will be deprecated? If it's a keeper, I can add in an example to the docs