• 0 Posts
  • 19 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle



  • Go had the same behavior until recently. Closures captures the variable from the for loop and it was a reference to the value.
    They changed it because it’s “common” in Go to loop over something and run a goroutine that uses the variable defined in the loop. Workaround was to either shadow the variable with itself before the loop, or to pass the value as an argument.
    It’s been a long time since I wrote c# so idk if the same is expected from the avg dev, but in Go it’s really not explicit that the variable will be a reference instead of a plain value




  • Wow, I didn’t know that being a Linux/open source contributor meant you don’t have to follow your country’s laws.

    It’s developed internationally but devs still reside somewhere and have to abide by the rules at that place. Linux in this case being represented by an US entity means they have to follow the gov’s sanctions. If you want more or less of those, that’s where (the government) you act.











  • Idiocracy is eugenics propaganda. People don’t get dumber because of their genes but because of worse education.
    Like the other commenter said, adopt if you want to improve the world (and not just your own life), but that’s harder without the biological attachment that comes from your own kids.

    (Not trying to be rude btw, just noting generally my thoughts)