Giter Club home page Giter Club logo

Comments (1)

otakustay avatar otakustay commented on May 28, 2024

在对象式编程的情况下,Action是一个构造函数,此时Action就是一个函数。在这种情况下,很难区分一个函数是作为构造函数,还是直接当Action使用。一种方式是根据 函数名首字母是否大写 来判断,但框架并不希望添加过多的规范上的限制。

另一方面,现有的框架已经支持任何包含enter方法的对象作为Action,因此只需要将一个函数作为一个纯对象的enter方法即可,不会产生太多的工作量。

因此,暂不考虑支持这一功能。如果切实有产品线对此有迫切需求,可以重新打开本Issue。

from er.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.