Quantcast
Channel: OSCHINA 社区最新新闻
Viewing all articles
Browse latest Browse all 44801

CoffeeScript 1.12.1 发布,脚本语言

$
0
0

脚本语言 CoffeeScript 1.12.1 发布了。本次更新如下:

  • 您现在可以导入名为默认的模块成员,例如 import {default} from'lib'。 虽然在 ES2015 中,你不能导入整个模块,并将其命名为默认值(因此不允许从 'lib' 导入默认值)。

  • Fix regression where from as a variable name was breaking for loop declarations. For the record, from is not a reserved word in CoffeeScript; you may use it for variable names. from behaves like a keyword within the context of import and export statements, and in the declaration of a for loop; though you should also be able to use variables named fromin those contexts, and the compiler should be able to tell the difference.

发布说明完整更新内容

下载地址


Viewing all articles
Browse latest Browse all 44801

Trending Articles