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

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

主站蜘蛛池模板: 小金县| 霸州市| 绍兴市| 洛川县| 崇阳县| 阿勒泰市| 宁津县| 临夏县| 崇礼县| 寿阳县| 桦川县| 滁州市| 九江市| 淳安县| 肇庆市| 祁阳县| 宾川县| 读书| 泾阳县| 郧西县| 日照市| 贵定县| 库伦旗| 岢岚县| 宝坻区| 永德县| 辽源市| 白沙| 伊春市| 高清| 临潭县| 张家港市| 会理县| 鄂托克前旗| 枣强县| 宝丰县| 宁武县| 吴忠市| 仙居县| 阿坝县| 青海省|