When I say safety I mean inability of the programmer to trigger UB using normal language features, like it's impossible in Rust and several other (less known) languages. Does Doo support it? Or I just can shoot the leg and compiler lets me do this?
About references: am I correct, that any value is reference-counted and one can pass it to a function and mutate it (the original, not a copy).