“Variables with initializers
A var declaration can include initializers, one per variable.
If an initializer is present, the type can be omitted; the variable will take the type of the initializer.”
Of course I read that first, that doesn’t explain my question at all, which is initializing a top level variable later on.
I don’t think it’s explained anywhere in the docs. if it is please point me to it.
So, can I not declare a top level variable without a value, and then later on initialize it?
And if so, why isn’t that documented anywhere? Seems like expected behaviour if you come from another language.