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

请教一下大家, 这种拦截错误代码防crash的功能是否会引起其他更加严重的缺陷? #19

Open
cocos543 opened this issue Dec 25, 2020 · 1 comment

Comments

@cocos543
Copy link

  1. 比如数组越界, 这种本身就是编码逻辑错误的, 早crash早发现问题, 而防止crash时候就把能早期发现bug的情况给延后了, 是否引起今后暴露更加严重的缺陷?

  2. 另一个往api里写入nil, cocoa本身有提供防crash的api和禁止写入nil的api, 这些函数声明的时候就已经说明了, 强行第三方插入防止crash, 是否导致编码不规范, 给代码埋下隐患?

以上纯属不理解和请教, 不是质疑 : )

@JJMM
Copy link
Owner

JJMM commented Feb 24, 2021 via email

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