TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Who Executed Existence.js?

1 pointsby mikodinover 4 years ago
Had a really powerful experience in which I was recursively going through all moments that lead me to where I currently was.<p>This is it written in code.<p>```<p>class Creation { constructor(createdBy) { this.createdBy = createdBy; this.id = createdBy + 1; }<p><pre><code> create() { console.log(`${this.id} doing every single thing that you could possibly imagine - creating ${this.id + 1}`) return new Creation(this.id) }</code></pre> }<p>function startExistence(creation) { if (creation) { startExistence(creation.create()); } }<p>startExistence(new Creation(0)); ```

1 comment

PoissonVacheover 4 years ago
I think the Existence never begin because the Creation keeps creating more creations infinitely before going through startExistence().
评论 #24544946 未加载