Re:Nim binary size from 160 KB to 150 Bytes
by beagle3 on Monday May 04, 2015 @11:18AM
(#9486667)
What's the rust name/syntax for non-nil vars?
[ Parent
| on HN ]
Re:Nim binary size from 160 KB to 150 Bytes
by steveklabnik on Monday May 04, 2015 @11:21AM
(#9486691)
let foo = 5; // cannot be null
let bar = Some(5); // technically also can't be null, but could be None
// instead of Some(val)
`foo` has the type `i32` here, and `bar` has the type `Option<i32>`.