I know it is a little arrogant from me, a beginner, to raise objections. But here they are:
This is an array of integers
var a: array [0..10,int]
Wouldn't if had been better something like this?
var a: array [0..10] of int
or
var a: int[0..10]
Or whatever that don't make item's type look like an index.
I think it's a great language. Of course, there are things I would prefer other way, probably because I'm used to do other way, but that's my problem. Nevertheless, such declaration of arrays is really weird.
What's the logic behind such syntax? I can't recall any language with such mess of index an base type.
It was a little weird for me at first. Now it's not. That's the nature of languages.
It isn't a matter of logic so much but to me it does show consistency with other type declarations, like seq[int].
EDIT: ...like @hakand said. ;-)
var a: int[0..10]
This would collide with slice syntax.
var a: array [0..10] of int
I prefer the comma. Less verbose. In fact, Nim is NOT a verbose language (Fortunately)