Web Designer - - 20 Hot Tools To Try Today -

You might not be fa­mil­iar with Rea­son. Rea­son is a rel­a­tively new lan­guage de­vel­oped by Face­book which of­fers a Javascript-like de­vel­op­ment ex­pe­ri­ence us­ing Ocaml. Rea­son code can be com­piled to Javascript us­ing an en­gine called Buck­le­script, which is es­sen­tially an Ocaml-to-javascript com­piler. What this means in prac­tice is that you can write stat­i­cally-typed, func­tional code in a lan­guage with syn­tax com­bin­ing el­e­ments of both Ocaml and Javascript, and then com­pile it to vanilla Javascript. The clos­est com­par­i­son is prob­a­bly Type­script, which it­self of­fers an ab­strac­tion on Javascript with static typ­ing, al­beit with sig­nif­i­cantly dif­fer­ent syn­tax. Reasonreact ex­tends this, al­low­ing you to write Re­act com­po­nents us­ing Rea­son code, and is made by the cre­ator of Re­act. If you like Re­act, this is one to take a look at.

Newspapers in English

Newspapers from UK

© PressReader. All rights reserved.