Re:IBM to buy HashiCorp in $6.4B deal
by janosdebugs on Wednesday April 24, 2024 @06:50PM
(#40150834)
Yes-ish? Slices are this weird construct where they sometimes behave like references and sometimes not. When I read the explanation, it always makes sense, but when using them it doesn't. For me the rule is: don't reuse slices and don't modify them unless you are the "owner" of the slice. Appending to a slice that was returned to you from a function is usually a pretty good way to have a fun afternoon debugging.
[ Parent
| on HN ]
There are no comments on this comment yet.