Rust 程序设计语言 简体中文版 1.85.0
that all use of references should be absolutely safe, with checking performed automatically by the compiler. But I couldn’t resist the temptation to put in a null reference, simply because it was so easy interface)有助于指导代码设计。以期望的调用方式来构建 API 代码的结构,接着 在这个结构之内实现功能,而不是先实现功能再设计公有 API。 类似于第十二章项目中使用的测试驱动开发。这里将要使用编译器驱动开发(compiler- driven development)。我们将编写调用所期望的函数的代码,接着观察编译器错误告诉我们 接下来需要修改什么使得代码可以工作。不过在开始之前,我们将探索不会作为起点使用的技 术。0 码力 | 562 页 | 3.23 MB | 9 天前3
共 1 条
- 1