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

Settle REMOTE_STYLE name #2900

Merged
merged 1 commit into from
Apr 24, 2021
Merged

Settle REMOTE_STYLE name #2900

merged 1 commit into from
Apr 24, 2021

Conversation

erights
Copy link
Member

@erights erights commented Apr 16, 2021

Long ago, @michaelfig and I settled on terminology such that 'presence' is a name at the eventual-send/handled-promise layer of abstraction and 'remotable' is a name at the marshal/passStyleOf level of abstraction. However, at that time, for remotables, passStyleOf was already returning 'presence'. To ease the transition from 'presence' to 'remotable' we introduced the constant name REMOTE_STYLE.

We recently revisited the naming at Agoric/documentation#456 (comment) . Although some of our other preferred name choices changed, this overriding one has remained stable. This PR changes the concrete passStyleOf answer for those cases from 'presence' to 'remotable' and also replaces all uses of REMOTE_STYLE with 'remotable'. It deletes the constant name REMOTE_STYLE.

In addition, while doing these substitutions, I noticed that coerceDisplayInfo was still trying to cope with a simple empty object being treated as a remotable, which is an irregularity we fixed long ago.

As with #2898 there is a potential cross-version compat issue we need to think about before merging. However, this string shows up only in local APIs. It is never sent as part of a protocol and so is much less likely to cause any actual incompat issues.

@erights erights self-assigned this Apr 16, 2021
Copy link
Contributor

@FUDCo FUDCo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OCD relief is good.

erights added a commit that referenced this pull request Apr 18, 2021
@erights erights force-pushed the markm-settle-remote-style-name branch from 4f99d72 to 3a83705 Compare April 24, 2021 01:33
@erights erights force-pushed the markm-settle-remote-style-name branch from 3a83705 to c389b87 Compare April 24, 2021 01:35
@erights erights enabled auto-merge (squash) April 24, 2021 01:41
@erights erights merged commit 3dc6638 into master Apr 24, 2021
@erights erights deleted the markm-settle-remote-style-name branch April 24, 2021 01:52
erights added a commit that referenced this pull request Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants