namhnguyen / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Trailing list commas in AQL #779

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
[1,2] is a valid expression while [1,2,] is not.

I think it would be helpful to support trailing commas. In query maintenance, 
elements could always be added or removed by editing one line (add or remove 
the line). Also, query generator code would not need a special case for the 
last element.

Many widespread languages support trailing commas in arrays (e.g. C++, Java, 
C#). That said, many languages don't (e.g. SQL).

Original issue reported on code.google.com by euf...@gmail.com on 26 May 2014 at 6:44

GoogleCodeExporter commented 9 years ago

Original comment by euf...@gmail.com on 26 Jul 2014 at 2:16