CoffeeScript 1.11.0 发布,脚本语言
栏目: CoffeeScript · 发布时间: 8年前
内容简介:CoffeeScript 1.11.0 发布,脚本语言
CoffeeScript 1.11.0 发布了。
offeeScript这一门编程语言构建在JavaScript之上,其被编译成高效的JavaScript,这样你就可以在web浏览器上运 行它,或是通过诸如用于服务器端应用的Node.js一类的技术来使用它。编译过程通常都很简单,产生出来的JavaScript与许多的最佳做法都保持了一致。
此次更新内容:
-
CoffeeScript now supports ES2015
importandexportsyntax . -
Added the
-M, --inline-mapflag 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 returncan no longer mistakenly be used as an expression. -
yieldnow mirrorsreturnin 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 thatreturnhas, 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
yieldno longer present. -
Improved several error messages.
-
Just like
undefinedcompiles tovoid 0,NaNnow compiles into0/0andInfinityinto2e308. -
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.tokensorCoffeeScript.nodes. Such tools need to update to take account for changed or added tokens and nodes. -
Several minor bug fixes.
详细内容,请查看 发行日志 。
下载地址:
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- 凹 (“Wa”) 语言:可以嵌入 Go 语言环境的脚本语言
- Python 脚本语言
- Go 语言实现的小型、动态、快速、安全的脚本语言
- 让C#语言充当自身脚本!
- awk脚本语言编程指南
- CoffeeScript 1.12.6 发布,脚本语言
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
渐进增强的Web设计
[美] Todd Parker、[英] Patty Toland、[英] Scott Jehl、[法] Maggie Costello Wachs / 牛化成 / 人民邮电出版社 / 2014-1 / 69.00
本书由全球著名Web设计公司Filament集团两位创始人和两位开发主力联手打造,其中Scott Jehl还是jQuery团队成员。四位作者具有多年的网站设计和开发经验,曾为网站、无线设备、Web应用设计过众多高度实用的用户界面,受到了高度赞扬。本书展示了如何利用渐进增强方法开发网站,从而获得最佳用户体验。本书既是理解渐进增强原则和益处的实用指南,也用详细的案例分析,目的是向设计师以及开发人员传授......一起来看看 《渐进增强的Web设计》 这本书的介绍吧!