Okay. I've never done low level or systems programming (or even used types much), and I'm about to look at Rust. This will be a thread about that experience. Here's hoping I don't get tetanus #rust #rustlang
-
-
Integers.... boy are there integers. i8, u8, i16, u16, isize... like do I have to know all these?
1 reply 0 retweets 0 likesShow this thread -
Okay this article helps a lot. https://medium.com/@marcinbaraniecki/on-integer-types-in-rust-b3dc1b0a23d3 … "If, in the runtime, happens that an operation on two integers produces a value that does not fit within the range of given integer type, a panic occurs." A panic occurs is the name of my autobiography
#rust#rustlang1 reply 0 retweets 1 likeShow this thread -
1 reply 0 retweets 0 likesShow this thread
-
There are tuples and arrays. Arrays are of a fixed size. So what's the difference? "Arrays are useful when you want your data allocated on the stack rather than the heap " Oh boy. Did i mention i didn't do comp sci? Am I even a real programmer?
#rust#rustlang3 replies 0 retweets 1 likeShow this thread
Arrays must have all the same type inside, tuples may have different types for each element
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.