Skip to content

Method ergonomics #10

@hanfel-dovned

Description

@hanfel-dovned

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions