7
swifty
5y

do {
liveLife();
} while (you != dead);

Comments
  • 4
    Reference error: liveLife is not defined

    Welcome to devRant
  • 1
    🙄
  • 2
    import life;

    const immortality = ()=>{
    try {
    do {
    life.live()
    } while(life.alive = true) // 🙂
    } catch(e) {
    // Let's try that again.
    return immortality()
    }
    }

    immortality()
  • 0
    With a do-while loop i could do one final liveLive(), even if I am dead? :D
  • 1
    @blackfaded yes but because your object has been destroyed it either fails with an error or with a bit of luck it will hang indefinitely and you will be somewhat immortal bit the draw back of not being able to do anything.
  • 1
    @Root nice assignment in the loop condition
  • 1
    @DustInCompetent I thought so 🙂😉
Add Comment