#rustlang: is ‘let a = [ 1u8, 2, 3 ]’ the only way to init u8 array without counting items by hand? ‘let a : [u8] =[1,2,3]’ etc doesn’t work
-
-
yep, I wondered why the compiler isn’t able to deduce just the count in the array type, e.g. smth like "let a: [u8,_] = [1,2,3];"
-
ah. It's technically feasible, but I'm not sure anyone has proposed it
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.