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

Maintainability

Reason may take some time to get comfortable with, but you can think of this time as an investment in the maintenance and confidence of your future product. Although languages with gradual type systems, such as TypeScript, may be easier to get started with, they don't provide the sorts of guarantees that a sound type system such as Reason's can provide. Reason's true benefits cannot be completely conveyed within simple examples, and only really shine when they save you time and energy in reasoning about, refactoring, and maintaining your code. Put it this way; if someone told me they were 99% sure a spider wasn't in my bed, I would still have to check the entire bed because I don't like bugs!

As long as you're 100% in Reason and your code compiles, the type system guarantees there will be no runtime type errors. It's true that when you are interoperating with non-Reason code (JavaScript, for example), you introduce the possibility of runtime type errors. Reason's sound type system allows you to trust that the Reason parts of the application won't cause runtime type errors, which therefore allows you to focus extra attention on ensuring that these areas of the application are safe. In my experience, programming in a dynamic language can feel noticeably dangerous. Reason on the other hand feels like it always has your back.

主站蜘蛛池模板: 沛县| 合作市| 治多县| 济源市| 遵义市| 哈密市| 孟津县| 南宁市| 来宾市| 全州县| 达拉特旗| 酉阳| 自贡市| 大冶市| 扎赉特旗| 岑巩县| 汝南县| 临夏县| 万山特区| 邻水| 调兵山市| 靖边县| 莱阳市| 北宁市| 凤山市| 麦盖提县| 南宁市| 喀喇| 塔河县| 江津市| 皋兰县| 休宁县| 博爱县| 靖远县| 高阳县| 郯城县| 饶平县| 剑川县| 武清区| 梅河口市| 油尖旺区|