要注意,报告不仅仅是检查错误。
因此往往会过早地检查错误。
这段代码用于执行查找并检查错误条件。
In this code, we perform the lookup and then check for an error condition.
So actually, the problem with static semantics is you'd like it to catch everything, you don't always get it.
因此实际上,你希望静态语义检查,能捕获所有的错误,但是经常结果不是这样的。
Weird things, bad things can happen and so one of the lessons too that will be repeated throughout the course is to actually rigorously error check and make sure that you're always thinking about your user being a bad guy.
各种古怪的事情就会蜂拥而至,所以在这个课程中我反复强调,要一丝不苟地检查错误,你就当你的用户是个调皮捣蛋的家伙。
Not everything is going to get caught in static semantics checking.
并不是所有的错误,都会在静态语义检查中被捕获。
应用推荐