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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Brain Gymnastics: Programming Language Keyword Abuse

2 点作者 nixy超过 15 年前
To get to know a language a little better, this is a fun way to spend an hour.<p>Simply try and use all the keywords of a language of choice. Then try to reduce the code to contain each keyword as few times as possible. Also, try to remove as much as possible that isn't a keyword.<p>The code should run, and all paths should be executed.<p>This is my Javascript snippet containing all keywords only once (except "this" which occurs twice). Only one non-keyword is used -- the variable "e".<p>Have fun!<p><pre><code> try { do { var e; continue } while (void delete typeof null in undefined) } catch(e) { with(e) if ((function(){ for (;;) break; switch (true instanceof this){ case false: default: throw new this } return })()); else; } finally {}</code></pre>

2 条评论

DrJokepu超过 15 年前
Branf*ck:<p><pre><code> &#60;&#62;[]+-., </code></pre> What did I win?
评论 #841515 未加载
shaunxcode超过 15 年前
In scheme does this mean all standardly available functions or just the truly fundamental special forms?