- Learn Type:Driven Development
- Yawar Amin Kamon Ayeva
- 129字
- 2021-07-02 14:41:26
Errors
We mentioned earlier that the compiler will raise errors if it cannot make sense of a piece of code it comes across. There are a few different kinds of compiler errors, and they are as follows
- Syntax errors
- Type errors
- Name errors
- Stale interface errors (which we'll cover in the next chapter)
- Compiler bugs (these are rare but shouldn't be discounted)
The two most common types of error that we will deal with are syntax errors and type errors. Name errors are fairly simple to avoid: always start type names with a lowercase letter and ensure that the names you refer to in your code were defined before you refer to them. (Reason supports cyclic references but not forward references; we'll cover cyclic references later on.)
推薦閱讀
- 軟件項目管理(第2版)
- C語言程序設計基礎與實驗指導
- FreeSWITCH 1.6 Cookbook
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- FFmpeg入門詳解:音視頻原理及應用
- Getting Started with Laravel 4
- Python算法詳解
- Mastering Web Application Development with AngularJS
- Spring Security Essentials
- 零基礎輕松學C++:青少年趣味編程(全彩版)
- Python數據預處理技術與實踐
- OpenCL異構并行計算:原理、機制與優化實踐
- Test-Driven iOS Development with Swift 4(Third Edition)
- Learning IPython for Interactive Computing and Data Visualization(Second Edition)
- Data Analysis with R