3 ms·
does anyone else think Go would be a much better language without the pointer distinction? maybe an explicit mutable type modifier instead?
by convolvatron 4y ago
does anyone else think Go would be a much better language without the pointer distinction? maybe an explicit mutable type modifier instead?
- ok_dad 4y agoYea, I think references to other values should be a type, like a `Reference[T]`. Then you can pass something by reference, rather than value, without having confusing referencing/dereferencing. A `Reference[T]` could have some sort of element reflection, where you can just use it like it's a `T`. Pointers, referencing, dereferencing; that can get confusing even for skilled engineers.