Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root772316yimport life;
const immortality = ()=>{
try {
do {
life.live()
} while(life.alive = true) // 🙂
} catch(e) {
// Let's try that again.
return immortality()
}
}
immortality() -
fuckwit11736y@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.
Related Rants

What only relying on JavaScript for HTML form input validation looks like
Found something true as 1 == 1
do {
liveLife();
} while (you != dead);
random
js
philosophical
dowhile