3 ms·
> Why not declare the array type as c_int[2]? Because the "&" reference operator goes before types, not after. (Rust makes the same decision as, for example,
by pcwalton 12y ago
> Why not declare the array type as c_int[2]?
Because the "&" reference operator goes before types, not after. (Rust makes the same decision as, for example, Go does.) This would lead to ambiguity when combined with postfix array type notation. What does "&c_int[2]" mean: is it "(&c_int)[2]" or "&(c_int[2])"?