This is a quality of life/syntactic sugar feature request:
It would be awesome if CodeQL, similar to Python, Java and C supported creating lists where the last element can have a trailing comma. For example:
fruit = [
"apple",
"kiwi",
"grape",
]
Rationale is basically the same as in other languages: The main advantages are that it makes multi-line lists easier to edit and that it reduces clutter in diffs.
This is especially helpful when writing SummaryModelCsv by hand and you need to copy/paste then modify a previously written line, then run unit tests. It gets annoying have to constantly remove, then add a new , at the end of the last line you add.
This is a quality of life/syntactic sugar feature request:
It would be awesome if CodeQL, similar to Python, Java and C supported creating lists where the last element can have a trailing comma. For example:
Rationale is basically the same as in other languages: The main advantages are that it makes multi-line lists easier to edit and that it reduces clutter in diffs.
This is especially helpful when writing
SummaryModelCsvby hand and you need to copy/paste then modify a previously written line, then run unit tests. It gets annoying have to constantly remove, then add a new , at the end of the last line you add.