Top all-time · #10865
don't panic
Personal blog · timekl.com/blogprogramming
don't panic is a personal blog at timekl.com about programming. Since 2015, 7 different Hacker News readers have linked it 7 times. No feed was found, so read it on the site itself.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
The blog's posts on variable capture in loops, such as a 2015 post on Go, are linked as background on how languages like C# and Swift handled loop variables. The comment cites them without judging the writing.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
What Hacker News says?
C# made that change in C# 5 (2012) ( https://ericlippert.com/2009/11/12/closing-over-the-loop-var... ) Swift had the problem in C-style for loops but not in “for…in” loops ( https://www.timekl.com/blog/2015/11/26/variable-capture-in-g... ), but got rid of it when it removed C-style for loops altogether in Swift 3 (September 2016) ( https://github.com/apple/swift-evolution/blob/main/proposals... )
Comment linking /blog/2015/11/26/variable-capture-in-go-vs-swift/
on “Since Go 1.22, loop {for I, p:= 0, new(int); p = &I; {p = &I}} might never exit”Submitted Swift Generics Evolution as a story · 80 points
HN discussionSubmitted Swift Generics Season 2: Existentials Boogaloo as a story · 3 points
HN discussionSubmitted Mac Pro: x86… or ARM? as a story · 2 points
HN discussionSubmitted Putting Core Data on the Map as a story · 1 points
HN discussionSubmitted Variable Capture and Loops in Go vs. Swift as a story · 1 points
HN discussionSubmitted Shipping an App with App Transport Security as a story · 1 points
HN discussion