Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method ergonomics #10

Open
hanfel-dovned opened this issue Jan 12, 2024 · 0 comments
Open

Method ergonomics #10

hanfel-dovned opened this issue Jan 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hanfel-dovned
Copy link
Contributor

Right now the Urbit object methods look like this:

pokeNearHandler: (json) => {
        return pokeUrbit("near-handler", "near-handler-action", json);
      },

The json argument here is doing a lot of heavy lifting; this JSON is encoding the poke. The Urbit http-api poke method works in this same way, simply specifying JSON as one of its arguments, but it would be nice if we could specify the components of this JSON that we need a little more explicitly, like so:

Urbit.arbitrary_poke("hood","helm-hi", "msg")

Once we have our current Urbit object implementation working, we should look more closely at these ergonomics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants