pvitz
Joined 12 years ago
Karma
793
Submissions
309
Member since
Oct 22
Joined 12 years ago
The control variable in for loops is read only. If you need to change it, declare a local variable with the same name in the loop body.
Also [0]:
Roberto Ierusalimschy
> So what's the rationale to make them constant now? Does it have performance
> reasons?Yes. The old code does an implicit "local x = x" for all loops, in case you modify 'x'. With the new semantics, the code only does it when you ask for it.
[0] https://archive.org/details/advancedcalculus031579mbp/mode/1...
And yes, searching for the reimplementation beforehand would have saved me some hours :D
> The contribution workflow in Guix has been facing several challenges:
> difficult onboarding, lack of legibility, complex, unreliable, and
> labor-intensive infrastructure, and lack of automation. All these lead
> to an experience that contributors often find frustrating and hinders
> quality assurance efforts. We propose to address these limitations by
> migrating repositories, issue tracking, and patch tracking to Codeberg,
> an integrated forge with a Web interface that is hosted by a non-profit.
[0] https://archive.softwareheritage.org/browse/content/sha1_git...