Skip to content

Extend array declaration capabilities (with possible breaking change) #11

@Krakean

Description

@Krakean

Currently, arrays can be declared only this way:
arrayWorkToo =
arrayElement1
arrayElement2

My suggestion is possibly remove such way of defining them (may be to make parsing a bit more strict), and instead allow these:
arrayWorkToo = [ 1, 2, 3 ]
arrayWorkToo = [ “red”, “yellow”, “black” ]
arrayWorkToo = [ [ 1, 2 ], [3, 4, 5] ]
arrayWorkToo = [
arrayElement1,
arrayElement2
]
arrayWorkToo = [ { x = 1, y = 2, z = 3 },
{ x = 4, y = 5, z = 6} ]

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions