![]() However, JavaScript is limited in this sense, since it’s not meant to be an FP language. With Reason, you mainly need to understand the FP principles on which it’s based - such as immutability, currying, composition, and higher-order-functions.īefore I discovered Reason, I was trying to use FP principles in JavaScript as much as I could. If you were a JavaScript developer before Reason came out and wanted to learn a functional programming (FP) language, you would have had to also learn a whole new syntax and set of rules. This is especially true in the JavaScript community because of the syntax similarities. This is one of the reasons why Reason (ouch, pun) is becoming increasingly popular. This means you could potentially write a single application using Reason syntax, and be able to run it in the browser, and on Android and iOS phones as well. ![]() It’s a syntax on top of OCaml that compiles to both readable JavaScript code and to native and bytecode as well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |