• 0 Posts
  • 17 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















  • I may be wrong, but while it’s annoying to have to add each instance one by one, it’s also a feature.
    If your instance’s users never access those other instances/communities, federating with them will only serve to increase the load on those servers, without any tangible benefits (other than not having to search communities once before accessing them).

    If I’m wrong, please someone correct me :)