reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.09k stars 424 forks source link

docs: reason-native async i/o and JSON patterns #2629

Closed cdaringe closed 2 days ago

cdaringe commented 3 years ago

Problem

There doesn't seem to be an idiomatic reference to how we do:

I've been learning ocaml, and figured I'd sprinkle in some reason given that they seem to interop fine w/ my dune builds 👍 , but have been largely relying on ocaml docs to help guide me on this topic(s).

Discussion

I'm happy to add to docs if ocaml & reason experienced users can help guide me. I've spent too much time trying to figure this out :).

I'm looking for a hypothetical "hands-on" section of the docs that says "let's call this API and parse the response" or let's read this file from disk and do XYZ with the streaming data.