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

Interoperability

That being said, sometimes—and especially when first learning about type systems—you may be unsure as to how to get your code to compile. Reason, through BuckleScript, allows you to drop down to raw JavaScript when you need to, either via bindings or directly inside your Reason (.re) files. This gives you the freedom to figure things out as you go along in JavaScript, and then once you're ready, convert that section of the code to type-safe Reason.

BuckleScript also lets us bind to idiomatic JavaScript in a very reasonable way. As you'll learn in Chapter 4, BuckleScript, Belt, and Interoperability, BuckleScript is an incredibly powerful part of Reason.

主站蜘蛛池模板: 镇康县| 荣成市| 定日县| 仙居县| 铁岭市| 黑河市| 光山县| 灵宝市| 临高县| 高安市| 长宁区| 吴堡县| 博爱县| 繁峙县| 阳春市| 文水县| 青神县| 阿合奇县| 田东县| 沙河市| 汶川县| 和政县| 斗六市| 门头沟区| 龙里县| 托里县| 南安市| 潼南县| 化隆| 武胜县| 荔波县| 南投县| 河北省| 丹东市| 天祝| 出国| 长治市| 保山市| 绵阳市| 建宁县| 凤山市|