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

help-circle




  • (sorry I took some time to come back to this) I’m not entirely sure the #5 of OSD would apply to the binary results (even though they are considered derivative work). GPL does restrict the license of the binary, but it seems MPLv2 allows licensing the binary differently as long as you don’t restrict the code further:

    You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients’ rights in the Source Code Form under this License.










  • 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