TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Who Executed Existence.js?

1 点作者 mikodin超过 4 年前
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

PoissonVache超过 4 年前
I think the Existence never begin because the Creation keeps creating more creations infinitely before going through startExistence().
评论 #24544946 未加载