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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

CoffeeScript 1.2.0 is out

55 点作者 dzejkej超过 13 年前

4 条评论

jashkenas超过 13 年前
There's not too much to see here ...<p>Some of the fun new bits are:<p><pre><code> coffee --compile --join lib/library.js --watch vendor/ src/ </code></pre> ... even as you add and remove files and subdirectories from "src" or "vendor".<p>Block comments at the top of the file can be used for licenses, as they'll be printed above the safety closure wrapper.<p>Smarter handling for code like this:<p><pre><code> print result if tests.all (test) -&#62; test is "ok" </code></pre> ... and a couple of new things, that didn't make 1.2.0, but will be part of 1.2.1:<p>"do" can now be used as a poor man's "let", even for variables which have never been declared:<p><pre><code> do (x = 1, y = 2) -&#62; x is 1 and y is 2 </code></pre> Classes will now be tagged with their "name", even in browsers that don't support the "name" property on named functions (cough, cough, IE). So if you need to metaprogram or reflect with:<p><pre><code> class Document method: -&#62; this.constructor.name is "Document" </code></pre> ... you're covered.
评论 #3369024 未加载
latchkey超过 13 年前
SUPER great news. Thanks all for the hard work on this. The developers are doing an amazing job. I'm head deep in CS 10+ hours a day right now working on my startup and I can't imagine what life would be like without it.
phzbOx超过 13 年前
The fun part about CS is that it's widely use and is thus a great success. The sad part is that it's nearly impossible to change the language without breaking the backward compatibility.
评论 #3369372 未加载
ludicast超过 13 年前
Very exciting to see development on this language. Ruby is always my #1, but CS is becoming #2 with a quickness.