eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

Support empty dynamic array syntax #137

Closed lucaswerkmeister closed 7 years ago

lucaswerkmeister commented 7 years ago

Apparently this syntax is now legal, and creates a new empty JS array:

dynamic a = dynamic [,];

I was under the impression that ceylon/ceylon#6579 was postponed for now, but it seems @gavinking implemented it and @chochos merged it (ceylon/ceylon@ba16617587), without any further discussion, and now we have to support this.

Any comments on how we want this to look? [,]? [, ]? [ ,]? [ , ]?