特殊注释标签(TODO,FIXME…)
标签 | 说明 | EN |
---|---|---|
TODO: |
以后要添加的功能 | Add a check here to ensure these are always strings. |
FIXME: |
已知的BUG,以后需要修正 | We sometimes get an undefined index in this array. |
HACK: |
代码不太好,需要优化 | I am doing something here that is horrible, but it works for now… |
XXX: |
包含所有tag的tag,不好明确到底用哪个tag | Let’s do this better next time? It’s bad. |
REVIEW: |
虽然好用,最好还是评审一下 | It works for now, but should be reviewed. |
OPTIMIZE: |
性能不好,需要优化 | This could be reworked to not do a O(N2) lookup. |
NOTE: |
一些说明 | This is here because sometimes an intermittent issue appears. |
WARNING: |
请注意 | attention |
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 wind.kaisa@gmail.com