You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
In Go, a string is internally a slice of bytes. Right now we don't support creating a slice with pnew() builtin. Currently, code like s := pnew(slice) *s = "hello"
works. But s is actually pointing to volatile memory. This will create confusion.
Instead, we should panic for now.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In Go, a string is internally a slice of bytes. Right now we don't support creating a slice with pnew() builtin. Currently, code like
s := pnew(slice)
*s = "hello"
works. But
s
is actually pointing to volatile memory. This will create confusion.Instead, we should panic for now.
The text was updated successfully, but these errors were encountered: