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

Great work! #3

Closed
CodingPapi opened this issue Nov 25, 2016 · 5 comments
Closed

Great work! #3

CodingPapi opened this issue Nov 25, 2016 · 5 comments

Comments

@CodingPapi
Copy link

我也在试用Kotlint做开发,还没有放到生产环境。
我觉得还可以在你的目录中补充下注解相关的内容,以及Dagger2的使用。
最近我在翻译一部分kotlin的文章,我们可以一起合作 :)

@bennyhuo
Copy link
Owner

好呀~
注解相关的内容你是指注解处理器相关的内容?Dagger2 这样的框架确实值得一讲,我甚至考虑后续专门开贴讲,注解处理这块儿确实跟Java还是不太一样,应该安排一期,谢谢你的建议!

@CodingPapi
Copy link
Author

kotlin的注解使用有一些坑,我对它的实现方式也很好奇 :)

@bennyhuo
Copy link
Owner

你说的类似 dagger,ButterKnife 这类的注解注入的框架的实现是吧?其实就是在编译期通过注解处理器的调用来生成一部分额外的代码来完成实例化、注入等一些操作的,这个确实是一个 Kotlin 与 Java 有明显不兼容的地方

@bennyhuo
Copy link
Owner

bennyhuo commented Dec 4, 2016

注解在 Kotlin当中的应用目前还是很局限,我最近准备出一期介绍介绍,有好的建议和想法直接发邮件给我吧! bennyhuo@println.net

@bennyhuo bennyhuo closed this as completed Dec 4, 2016
@bennyhuo
Copy link
Owner

注解视频将在今天发出~~

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

No branches or pull requests

2 participants