As a programmer who is new to Vala, what is your number one piece of advice to someone who is new to the language?
Generally, Vala is excellent, but the one big gotcha I've found is that either its handling of arrays is very primitive compared to the rest of the language or its documentation has a very gaping hole in it.
Despite a long, hard look through the documentation, tutorials, and Google, I've concluded that:
foreach
and +=
to manually add one array to the other element-by-element.argv[1:-1]
but there seems to be no syntax for equivalent to Python's argv[1:]
, so you have to fall back to something more procedural for that.add
with foreach
and +=
.