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

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

主站蜘蛛池模板: 德兴市| 广安市| 新和县| 罗定市| 威信县| 濉溪县| 南陵县| 若尔盖县| 凤庆县| 绥滨县| 丰顺县| 肥东县| 稻城县| 奉节县| 临泉县| 会东县| 东城区| 阿克苏市| 华池县| 奉新县| 绍兴县| 高唐县| 高邮市| 肥东县| 龙川县| 富源县| 叶城县| 蓝田县| 景洪市| 姜堰市| 邳州市| 麦盖提县| 邵东县| 海晏县| 黎平县| 错那县| 吉木乃县| 阳曲县| 柏乡县| 永德县| 绥阳县|