News for hackers. Stuff that matters.
Re:Uber Go Style Guide by skybrian on Friday October 11, 2019 @07:49PM (#21229436)
Ouch. I guess this would be a reason to use strings more, since they're immutable.
Re:Uber Go Style Guide by morelisp on Saturday October 12, 2019 @06:28AM (#21231966)
Someone using a string when they really want a byte array/slice would fail review on its face. Excepting external APIs forcing "strings" on us, we only use the Go string type for UTF-8 code unit sequences (and this is a common assumption in the Go world).
Re:Uber Go Style Guide by sanxiyn on Friday October 11, 2019 @08:01PM (#21229483)
Using string doesn't allow reuse, so you are leaving significant performance on the table.