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
andexport
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 mirrorsreturn
in that it can be used stand-alone as well as with expressions. Where you previously wroteyield undefined
, you may now write simplyyield
. However, this means also inheriting the same syntax limitations thatreturn
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 tovoid 0
,NaN
now compiles into0/0
andInfinity
into2e308
. -
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
orCoffeeScript.nodes
. Such tools need to update to take account for changed or added tokens and nodes. -
Several minor bug fixes.
详细内容,请查看 发行日志 。
下载地址:
以上所述就是小编给大家介绍的《CoffeeScript 1.11.0 发布,脚本语言》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- 凹 (“Wa”) 语言:可以嵌入 Go 语言环境的脚本语言
- Python 脚本语言
- Go 语言实现的小型、动态、快速、安全的脚本语言
- 让C#语言充当自身脚本!
- awk脚本语言编程指南
- CoffeeScript 1.12.6 发布,脚本语言
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
产品心经:产品经理应该知道的60件事(第2版)
闫荣 / 机械工业出版社 / 2016-4 / 69.00
本书第一版出版后广获好评,应广大读者要求,作者把自己在实践中新近总结的10个关于产品的最佳实践融入到了这本新书中。这"10件事"侧重于深挖产品需求和产品疯传背后的秘密,配合之前的"50件事",不仅能帮产品经理打造出让用户尖叫并疯传的产品,还能帮助产品经理迅速全方位提升自己的能力。 本书作者有超过10年的产品工作经验,在互联网产品领域公认的大咖,这本书从产品经理核心素养、产品认知、战略与规划、......一起来看看 《产品心经:产品经理应该知道的60件事(第2版)》 这本书的介绍吧!