js-to-reasonml-transpiler icon indicating copy to clipboard operation
js-to-reasonml-transpiler copied to clipboard

what the heck is this |. operator? I haven't seen it in the Reason language basics

Open jedwards1211 opened this issue 6 years ago • 1 comments

Sorry to bother, I just had to ask. Obviously I'm just a curious observer of Reason rather than a user.

E.g.

document |. getBody |. appendChild1(app |. getView);

From the Reason language basics docs I would think it would simply be

document.getBody.appendChild1(app.getView);

jedwards1211 avatar Jan 08 '19 06:01 jedwards1211

Sorry, I don't want to think about programming right now. Perhaps go to the discord channel for ReasonML and ask there? I had the answer in my mind before, but I would have to do all the work to refresh my memory to retrieve this fact in order to share it with you.

emnh avatar Jan 08 '19 06:01 emnh