1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 PureScript v0.9.1 发布,静态类型语言 下载

本帖由 漂亮的石头2016-06-02 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,699
    赞:
    47
    PureScript v0.9.1 发布了。更新如下:

    Breaking Changes

    Name resolving


    (@garyb)

    The way names are resolved has now been updated in a way that may result in some breakages. The short version is: now only names that have been imported into a module can be referenced, and you can only reference things exactly as you imported them.

    Some examples:

    [​IMG]

    Partial Constraints


    (@garyb, @paf31)

    The compiler will now generate an error for a missing Partial constraints, where it would previously have issued a warning.

    Module Restrictions


    (@garyb, @paf31)


    • Imports must now appear before other declarations in a module.


    • A source file must now contain exactly one module.

    These restrictions will allow us to improve incremental build times in future, since we will only need to parse a small prefix of each file in order to figure out what needs to be rebuilt. Right now, we need to parse every file fully.

    Foreign Function Interface Changes


    (@paf31)

    Foreign modules are now found by filename rather than by searching for a custom JavaScript comment. The foreign module is found by changing the extension of the corresponding PureScript module from .purs to .js.

    This change was made to be more consistent with psc-ide, and also to adopt a simple convention which will port well to other backends.

    Operator Aliases


    (@garyb)

    All operators must be defined as aliases from now on. That is, it is no longer valid to define an operator as a name in local scope (e.g. let (#) x y = x y in ...). This change makes it possible to generate better JavaScript code for operators, by desugaring them to the functions they alias.

    Other


    下载地址:


    详情:https://github.com/purescript/purescript/releases/tag/v0.9.1
    PureScript v0.9.1 发布,静态类型语言下载地址
     
正在加载...