Created
November 23, 2014 17:24
-
-
Save mnemnion/a9a6840201463ca1f82c to your computer and use it in GitHub Desktop.
This should be at least warned against
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Cell = u32 ; | |
type Kilo = u32 ; | |
fn main() { | |
let x: Cell = 5 ; | |
let y: Kilo = 10 ; | |
let z = x + y ; | |
println!("Cell is {}, Kilo is {}, Nonsense is {}", x, y, z); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The alternative is basically
and that's probably better. Day 4 humans and robots, day 4.