News for hackers. Stuff that matters.

Who Executed Existence.js?

Had a really powerful experience in which I was recursively going through all moments that lead me to where I currently was.

This is it written in code.

```

class Creation { constructor(createdBy) { this.createdBy = createdBy; this.id = createdBy + 1; }

    create() {
        console.log(`${this.id} doing every single thing that you could possibly imagine - creating ${this.id + 1}`)
        return new Creation(this.id)
    }
}

function startExistence(creation) { if (creation) { startExistence(creation.create()); } }

startExistence(new Creation(0)); ```

( 2 comments | on HN )
Re:Who Executed Existence.js? by PoissonVache on Monday September 21, 2020 @11:27AM (#24544522)
I think the Existence never begin because the Creation keeps creating more creations infinitely before going through startExistence().
Re:Who Executed Existence.js? by mikodin on Monday September 21, 2020 @12:01PM (#24544946)
It's in a class - it only executes when startExistence(new Creation(0)) get's executed ;)

Ironically HN isn't a great paste code into as the formatting is horrific </3.