Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

egg - JSConf China 2016 - 企业级的 Node 框架 #13

Open
atian25 opened this issue Sep 4, 2016 · 2 comments
Open

egg - JSConf China 2016 - 企业级的 Node 框架 #13

atian25 opened this issue Sep 4, 2016 · 2 comments

Comments

@atian25
Copy link
Owner

atian25 commented Sep 4, 2016

Slide 已经上传:
https://github.com/atian25/blog/blob/master/assets/files/egg%20-%20JSConf%20China%202016.pdf

@Kaijun
Copy link

Kaijun commented Sep 8, 2016

请教下 getter大量使用 Symbol.for 的意义是什么?

  1. 为了实现(半)私有变量?
  2. 用户要是知道变量的命名空间 同样使用 xxx[Symbol.for('namespace')] 就可以访问到吗?
    是针对上面两点的考量吗?

@atian25
Copy link
Owner Author

atian25 commented Sep 8, 2016

并没有大量使用,很多都是内部 Symbol,没有 for

只有 view 和 loader,eggPath 使用了,当时的考虑到的是框架可以多级继承,一层一层传不好,现在新的继承机制后可以考虑 export 出来,这个我们还在讨论。

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

No branches or pull requests

2 participants