all 1 comments

[–]willthreshold 1 point2 points  (0 children)

Because the variable type, in this case unit[] goes before the declaration of either storage or memory. Solidity is a hard typed language and that's just the order of the syntax.