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

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

主站蜘蛛池模板: 辽中县| 华阴市| 梨树县| 大宁县| 武宣县| 鄂尔多斯市| 棋牌| 莱西市| 海原县| 漠河县| 马山县| 赫章县| 娱乐| 灵宝市| 当雄县| 临西县| 永和县| 鄂伦春自治旗| 仁怀市| 三亚市| 罗定市| 汉寿县| 南岸区| 炉霍县| 江陵县| 苏尼特左旗| 敖汉旗| 定西市| 青神县| 舟曲县| 南雄市| 台前县| 静乐县| 格尔木市| 双鸭山市| 娄烦县| 麟游县| 大足县| 横峰县| 西城区| 安义县|