Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
gpderetta
1mo ago
0 comments
Save
Share
a thread_local is just a global variable. Mutable global variables are of course bad, but in this case the threadindex is immutable once created, so it is perfectly fine.
0 comments
1 comments · 1 top-level
top
newest
oldest
nnevatie
1mo ago
Yes, technically it is of course fine, just as a design I find use of thread_local is more of an afterthought than something I'd prefer.
j
/
k
navigate · click thread line to collapse