- 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.)
推薦閱讀
- Bootstrap Site Blueprints Volume II
- Git Version Control Cookbook
- Cocos2D-X權威指南(第2版)
- Python從入門到精通(精粹版)
- Java從入門到精通(第4版)
- 三維圖形化C++趣味編程
- HTML5 and CSS3 Transition,Transformation,and Animation
- SQL基礎教程(視頻教學版)
- 執劍而舞:用代碼創作藝術
- RESTful Java Web Services(Second Edition)
- Java SE實踐教程
- C指針原理揭秘:基于底層實現機制
- 深度學習程序設計實戰
- R語言數據挖掘:實用項目解析
- Isomorphic JavaScript Web Development