哦是的,没变化,如果你看看我的代码的话。
我们用的是测试驱动的方法,首先写一个我们希望通过的测试,一旦这个测试通过,我们再回头看我们可以怎么来优化代码。
We did it test-driven, starting with a test that we wanted to succeed and once it passed we looked into how we could improve the code.
我们建议您阅读源代码,看看我们所讨论的理论如何实现为可运行的代码。
We recommend you browse the source and see the ideas we have been discussing implemented as runnable code.
OK, so far though, I've just shown you what happens inside a peace a code. It raises an exception. It goes to that accept clause. We don't have to use it just inside of one place.
好了,我已经给你们看了,代码内部发生了什么,它报了一个异常,然后就到了处理的片段,我们不该就在一个地方用它。
Well there are a couple of interesting intermediate values here, right? There's tmp.
回去再看第一段代码,那么在这里我该关注什么呢?
Well, as we'll eventually show you the source code, the code we wrote for GetInt itself.
好的,因为最终我们将给你们看源代码,那个我为GetInt而写的代码。
应用推荐