Skip to content

farrow-module 是否有基于函数版本的实现? #59

Open

Description

@zhanglingkang

如题,蟹蟹~~

Activity

  1. github-actions commented on Mar 26, 2021

    @github-actions

    Thank feedback. We will check it later:-)

  2. Lucifier129 commented on Mar 27, 2021

    @Lucifier129
    Collaborator

    从 runtime 机制上,可以有函数的版本,但写法会复杂一点。

    从 type 层面,一旦涉及递归,目前的 TS,函数版本的 type infer 不奏效,TS 要求明确标注返回值。

    class 版本,TS 有特殊处理,class 定义时,既包含 impl 实现,又包含 type 声明,可以支持递归关联。

    函数版本,如果要保持 immutable,也很难实现递归引用。

    总的来说,函数式的方式实现 farrow-module 可能是一个全新的思路和考量。现阶段还没有很清晰的想法。

  3. zhanglingkang commented on Mar 30, 2021

    @zhanglingkang
    Author

    了解了,感谢回复~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions