CoffeeScript 1.11.0 发布,脚本语言

栏目: CoffeeScript · 发布时间: 6年前

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

CoffeeScript 1.11.0 发布了。

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

此次更新内容:

  • CoffeeScript now supports ES2015 import  and  export  syntax .

  • Added the -M, --inline-map flag to the compiler, allowing you embed the source map directly into the output JavaScript, rather than as a separate file.

  • A bunch of fixes for yield :

    • yield return can no longer mistakenly be used as an expression.

    • yield now mirrors  return in that it can be used stand-alone as well as with expressions. Where you previously wrote  yield undefined , you may now write simply  yield . However, this means also inheriting the same syntax limitations that  return has, so these examples no longer compile:

      doubles = ->
        yield for i in [1..3]
          i * 2
      
      six = ->
        yield
          2 * 3
    • The JavaScript output is a bit nicer, with unnecessary parentheses and spaces, double indentation and double semicolons around yield no longer present.

  • Improved several error messages.

  • Just like undefined compiles to  void 0NaN now compiles into  0/0 and  Infinity into  2e308 .

  • Bugfix for renamed destrucured parameters with defaults. ({a: b = 1}) -> no longer crashes the compiler.

  • Improved the internal representation of a CoffeeScript program. This is only noticeable to tools that use CoffeeScript.tokens or  CoffeeScript.nodes . Such tools need to update to take account for changed or added tokens and nodes.

  • Several minor bug fixes.

详细内容,请查看 发行日志

下载地址:


以上所述就是小编给大家介绍的《CoffeeScript 1.11.0 发布,脚本语言》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

程序员之禅

程序员之禅

[德] Christian Grobmeier / 荣耀、朱艳 / 人民邮电出版社 / 2015-8 / 39.00元

禅是一种生活态度和生活方式。程序员是一份特别辛苦的职业,也是一个承受各种压力的群体。在物欲横流的今天,禅对于程序员有着特殊的意义和价值。 本书的作者是一名德国程序员老兵,深谙程序员的喜怒哀乐。他曾经发表了一篇题为“程序员之禅的十条法则”的博客文章,引发众多程序员热烈的讨论和强烈的共鸣。本书共10章,结合程序员日常生活和工作的方方面面,作者通过对禅的知识、理解、体验、思考和感悟,提出很多中肯的......一起来看看 《程序员之禅》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换