This PR compares and contrasts the following two idioms for creating object capabilities:
BYOchannel where the user passes in a channel for a capability to be constructed on factory!(*myCap, *ack)
NEWchannel where the factory creates and returns a new channel that the capability is constructed on. factory!(*return)
The code includes converters that work in both directions, but ultimately favors writing library contracts in the BYOchannel style because conversion is easier to write and faster to execute.
This PR compares and contrasts the following two idioms for creating object capabilities:
factory!(*myCap, *ack)
factory!(*return)
The code includes converters that work in both directions, but ultimately favors writing library contracts in the BYOchannel style because conversion is easier to write and faster to execute.