Re:Mistakes with Rust smart pointers: when Deref goes wrong
by mr_00ff00 on Monday July 10, 2023 @11:10AM
(#36667569)
I have limited Zig experience, but actually zig is different from rust or go in this regard, correct?
Rust and Go have the pointer have the unified syntax, but I thought in zig it does differentiate between the pointer itself and the value it points to.
Rust and Go have the pointer have the unified syntax, but I thought in zig it does differentiate between the pointer itself and the value it points to.
Rust and Go:
ptr.method_on_ptr() ptr.method_from_underlying_val()
Zig:
ptr.method_on_ptr() ptr.*.method_from_underlying_val()