设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

CoffeeScript 1.8 发布啦

2014-8-28 16:55| 发布者: joejoe0332| 查看: 1990| 评论: 0|原作者: oschina|来自: oschina

摘要:   CoffeeScript 1.8 发布啦,现已提供下载,更新内容如下:The --join option of the CLI is now deprecated.Source maps now use .js.map as file extension, instead of just .map.The CLI now exits with the e ...

  CoffeeScript 1.8 发布啦,现已提供下载,更新内容如下:


  • The --join option of the CLI is now deprecated.

  • Source maps now use .js.map as file extension, instead of just .map.

  • The CLI now exits with the exit code 1 when it fails to write a file to disk.

  • The compiler no longer crashes on unterminated, single-quoted strings.

  • Fixed location data for string interpolations, which made source maps out of sync.

  • The error marker in error messages is now correctly positioned if the code is indented with tabs.

  • Fixed a slight formatting error in CoffeeScript’s source map-patched stack traces.

  • The %% operator now coerces its right operand only once.

  • It is now possible to require CoffeeScript files from Cakefiles without having to register the compiler first.

  • The CoffeeScript REPL is now exported and can be required using require 'coffee-script/repl'.

  • Fixes for the REPL in Node 0.11.


  CoffeeScript这一门编程语言构建在JavaScript之上,其被编译成高效的JavaScript,这样你就可以在web浏览器上运行它,或是通过诸如用于服务器端应用的Node.js一类的技术来使用它。编译过程通常都很简单,产生出来的JavaScript与许多的最佳做法都保持了一致。


  先来看下对比代码(左为CoffeeScript):



酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部