This commit is contained in:
2023-05-11 13:05:37 -04:00
parent 6c6eb77480
commit b6b32e2a3d
3 changed files with 101 additions and 1 deletions

View File

@@ -158,5 +158,20 @@ traits!
type conversions in a generic way
x.into() will do the type conversion for you, if valid and lossless
const - compile time const, like #DEFINE
value of shadowing - one of the benefits of dynamic typed -- you have the same logical object, but it's transforming, you wanna keep the same name
memory management
stack / heap
shared xor mutable
explicit lifetimes:
tick a
var<'a>(p1: &'a Point, p2: &'a Point') -> &'a Point{}
erase(var) // you can delete a var...