- 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.)
推薦閱讀
- DevOps with Kubernetes
- C語言程序設計(第3版)
- Python數據分析基礎
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- HTML5+CSS3網站設計基礎教程
- JavaScript:Moving to ES2015
- Python算法指南:程序員經典算法分析與實現
- Cybersecurity Attacks:Red Team Strategies
- Visual Basic程序設計習題與上機實踐
- Kotlin Programming By Example
- 工業機器人離線編程
- 現代C:概念剖析和編程實踐
- C#面向對象程序設計(第2版)
- Practical Maya Programming with Python
- Python應用與實戰