void main(){
int[3] arr = [1, 2, 3,];
}
Is the extra comma legal or is it not flagged as an error due to a compiler error? I have many mixes that generate arrays with an extra comma at the end. I would like to know if I should take the time to remove them.
even this compiles without errors:
void main(){
int[3] arr = [1, 2, 3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,];
}