Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

You probably don’t need this library #1

Open
burdiyan opened this issue Feb 4, 2023 · 1 comment
Open

You probably don’t need this library #1

burdiyan opened this issue Feb 4, 2023 · 1 comment

Comments

@burdiyan
Copy link

burdiyan commented Feb 4, 2023

Slices in Go can be used concurrently when accessing different slice indices. Meaning that if you have a slice of known length, multiple goroutine can access independently and concurrently different potions of this slice without causing data races. The Go spec defines slice[i] being equivalent as access to an independent variable.

@fiatjaf
Copy link
Contributor

fiatjaf commented Feb 4, 2023

Indeed. I had this suspicion too, but wasn't sure.

Thank you for clarifying this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants