Giter Club home page Giter Club logo

Comments (5)

drakeet avatar drakeet commented on July 29, 2024

是可以做局部类型池,但之所以使用全局的原因出于两点考虑:

一,整个应用一般类型不会太多,很难很难超过一百种,而且 provider 都是轻薄的类对象,存储的内存占用可以忽略,或者说不必担心;

二,全局能够使得注册归于一个统一的地方,更加直观和便于管理。建议在 Application 初始化便进行预先注册全部类型。

综上,目前仍然偏向全局。

from multitype.

drakeet avatar drakeet commented on July 29, 2024

另外,你的表述略微有点凌乱,暂且 closed,如若能够修改得更清晰,且后续讨论,再 reopen.

from multitype.

drakeet avatar drakeet commented on July 29, 2024

或许,局部类型池可以作为 optional 参数,这倒可以接受。

from multitype.

LuckyJayce avatar LuckyJayce commented on July 29, 2024

我写了个demo,已经发到你gmail邮箱上了

from multitype.

drakeet avatar drakeet commented on July 29, 2024

晚上我会改为
onCreateViewHolder,但暂时还是坚持不支持局部类型池,因为我不想让类型分散注册,这是没必要的,而且会分散各地,若可选也会使用户疑惑“到底要还是不要?”。非常感谢你的贡献和让这个项目越来越好!
LuckyJayce [email protected]于2016年8月5日 周五19:28写道:

我写了个demo,已经发到你gmail邮箱上了


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#10 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE-QBtnUiUsg992lyMpakZIRqFyIm82Tks5qcx51gaJpZM4JdgMW
.

from multitype.

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.