CoffeeScript

2010-12-14 02:22:42 +08:00
 Oliver
CoffeeScript is a little language that compiles into JavaScript. Underneath all of those embarrassing braces and semicolons, JavaScript has always had a gorgeous object model at its heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.

The golden rule of CoffeeScript is: "It's just JavaScript". The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly (and vice-versa). The compiled output is readable and pretty-printed, passes through JavaScript Lint without warnings, and runs in every JavaScript implementation.

http://jashkenas.github.com/coffee-script/
5107 次点击
所在节点    分享发现
2 条回复
Livid
2010-12-14 02:37:12 +08:00
@Oliver 上传一个头像吧 :)
kayue
2010-12-14 03:12:45 +08:00
heard about it, but not too used to code in that style. I have no idea what is it going to generate, unless there is an editor works just like the demo they have on their website - coffee script on one side and js on the other side

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/5822

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX