▲ | nevir 14 hours ago | |||||||
The Rust equivalent is more like using `unsafe` and derefing raw pointers | ||||||||
▲ | b_e_n_t_o_n 14 hours ago | parent [-] | |||||||
Yeah and you can explicitly assert a null is a string in TS, but it's explicit. You can't build a Rust program without those asserts but it's trivial to skip the type checking for TS which is more of a linter than a type system. | ||||||||
|