News for hackers. Stuff that matters.
Re:Git's list of banned C functions by maerF0x0 on Thursday March 04, 2021 @05:26PM (#26349334)
yeah the lack of determinism in selecting a channel can be tricky for causing bugs where order matters. Luckily in smaller cases you're likely to encounter them as flakey tests (eg 1/2 the time)

   select {

       case <-ch1:

       case <-ch2: 
    }
Re:Git's list of banned C functions by crimper on Friday March 05, 2021 @12:56PM (#26359761)
thanks for this, i couldn’t articulate it so clearly. Another gotcha is responding to closed channels, it makes sense in the grand scheme of things but when the program grows it gets tricky