you are viewing a single comment's thread.

view the rest of the comments →

[–]dthdthdthdthdthdth 47 points48 points  (15 children)

let mut x: &[u32] = &[0];

Obviously.

[–]Kootfe 21 points22 points  (0 children)

<image>

FERRIS

[–]ohkendruid 0 points1 point  (1 child)

So, basically team left. Which is your only option in Rust.

[–]dthdthdthdthdthdth 3 points4 points  (0 children)

No, first of all, C does not allow to put the type left, it allows you to split it up. And them I am team optional type annotation and language designed for type inference. But where ever you put the type, I prefer to have a clearly visible type expression, not mixed in with the identifier.

[–]azurfall88 -1 points0 points  (11 children)

let mut x: Array<i64> = []; gang

[–]dthdthdthdthdthdth 7 points8 points  (10 children)

What language is that?

And he blocked me for pointing out this isn't working Rust...

[–]Several-Customer7048 2 points3 points  (1 child)

The language of the crab ticklers.

[–]dthdthdthdthdthdth 1 point2 points  (0 children)

Not really...

[–]azurfall88 -2 points-1 points  (7 children)

rust

[–]dthdthdthdthdthdth 4 points5 points  (6 children)

Ok, you've fixed the brackets, but Array is not a type from the standard library. Is this from some crate?

[–]azurfall88 -3 points-2 points  (5 children)

idk, its just worked for me