脚本语言 CoffeeScript 1.12.1 发布了。本次更新如下:
您现在可以导入名为默认的模块成员,例如 import {default} from'lib'。 虽然在 ES2015 中,你不能导入整个模块,并将其命名为默认值(因此不允许从 'lib' 导入默认值)。
Fix regression where
from
as a variable name was breakingfor
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 ofimport
andexport
statements, and in the declaration of afor
loop; though you should also be able to use variables namedfrom
in those contexts, and the compiler should be able to tell the difference.
下载地址