Check point! This step will set up some common tools you'd use during Reason's development.
Merlin: check out the description here. We're writing a small .merlin file in this step. Read through the comments in the file; they're helpful.
Reason has editor support for Atom, Vim, Emacs, etc. using Merlin. They're very nice-to-haves.
Ultimately, Reason will provide you an opinionated (but optional) build system that takes care of generating everything you're seeing here & more. Our goal for the opinionated build system is to:
Enable a hassle-free onboarding experience, so that people don't have to fit the whole ecosystem & tooling & workflow in their head before starting their first .re file.
Enable nice features that are otherwise hard to have in an agnostic build & tooling ecosystem. For example, if your directory structure abides by some format we prefer, then we can make the documentation, repl bootstrapping, merlin and the rest work together.
/* ^ Try typing `MyDep.s` */
/* It should have auto-completed `secret`. If it doesn't, make sure you've reloaded your editor? */
/* If you're using atom-reason, go to the plugin's setting page and put in the correct paths. */
/* TODO: describe this better. */
let secret = "hello";
let secret = MyDep.secret ^ " world";
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.