3 ms·
Sorry I misinterpreted. When Go was introduced a lot of people got caught up in the declaration order being opposite to C-style languages and I assumed you had
by kibibu 13y ago
Sorry I misinterpreted. When Go was introduced a lot of people got caught up in the declaration order being opposite to C-style languages and I assumed you had too.
Nevertheless, it's similar to Algol's bracket syntax, except in Algol the type comes before the variable:
[]INT numbers = (0, 1, 2);