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
I tried to find answer, but failed.
Hchan's closed field can store values 0 or 1.
What was the reason not to use at least uint8 or uint16 instead of uint32 ?
What the fundamental reasons not to use bool?
Hope, @dvyukov (last modifier of this code) or anyone else can explain this to me for better understanding of chan internals.
The text was updated successfully, but these errors were encountered:
FluorescentTouch
changed the title
runtime: Why does hchan's closed field typed as uint32 and not as uint16 or bool?
runtime: Why does hchan's closed field typed as uint32 and not as uint8 or bool?
Feb 1, 2021
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
go/src/runtime/chan.go
Line 37 in 46cb016
I tried to find answer, but failed.
Hchan's closed field can store values 0 or 1.
What was the reason not to use at least uint8 or uint16 instead of uint32 ?
What the fundamental reasons not to use bool?
Hope, @dvyukov (last modifier of this code) or anyone else can explain this to me for better understanding of chan internals.
The text was updated successfully, but these errors were encountered: