官术网_书友最值得收藏!

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.)

主站蜘蛛池模板: 东阳市| 财经| 中牟县| 华池县| 贵定县| 日喀则市| 武夷山市| 尚义县| 巴林左旗| 西乡县| 东兰县| 长岭县| 江门市| 若羌县| 松潘县| 溧水县| 龙陵县| 香河县| 彭泽县| 和平县| 黑河市| 宁陵县| 上思县| 陇西县| 准格尔旗| 巢湖市| 华坪县| 扶风县| 通州区| 黄山市| 东港市| 吴桥县| 三江| 马公市| 成安县| 常宁市| 汝南县| 宁城县| 安宁市| 洮南市| 大英县|