3 ms·
I do not think in/out parameters are ugly. I find them to be a lot more elegant than the cudgel that is pointers. Go's pointers are certainly BETTER than C++ p
by KirinDave 10y ago
I do not think in/out parameters are ugly. I find them to be a lot more elegant than the cudgel that is pointers.
Go's pointers are certainly BETTER than C++ pointers, but I don't think that immediately makes it better. BOTH languages have value and reference semantics, and BOTH languages use syntax to dogwhistle that to programmers.