News for hackers. Stuff that matters.
Re:Understanding a Python Closure Oddity by wging on Monday June 17, 2024 @03:00PM (#40709639)
Fun(?) fact: it's not technically true that const can't be used in for loops:

    for (const i = 0; i > 0; ) {
        console.log('this is stupid');
    }

    let ran = false;
    for (const i = 0; !ran; ran = true) {
        console.log('this is also stupid');
    }

There are no comments on this comment yet.