Add docs for how to use ocall.

Open
#29 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
clojure, javascript
Domain
documentation

Research direction

Start by locating the ocall macro and comparing its accepted arguments with the shown (.call (oget % "getDoc") %) expression. Document the valid ocall form, including a minimal example for calling getDoc, and explain what result or behavior confirms the usage.

Written by the indexing model from the issue text.

Description

Right now there doesn't seem to be any docs on how to use ocall...and I can't seem to figure it out by trial and error myself.

I'm trying to translate:

(.call (oget % "getDoc") %) to use ocall, with no success. I've tried things such as:

(ocall % "getDoc"), (ocall % "getDoc" %), (ocall % ("getDoc")), (ocall "getDoc" %), etc.

I would imagine the first one is what I should be using. But since there's no documentation I can't tell if its breaking because I'm using it wrong, or because of some other error.

Dominant language
Clojure
Stars
350
Forks
13
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from binaryage/cljs-oops

All issues in binaryage/cljs-oops

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.