脚本语言 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.
软件详情:https://github.com/jashkenas/coffeescript/releases/tag/1.12.1
下载地址:https://github.com/jashkenas/coffeescript/archive/1.12.1.zip
来自:开源中国社区

