-
Notifications
You must be signed in to change notification settings - Fork 107
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
feat: allow persistent
? actor
to switch default and transient
as synonym for flexible
#4786
Conversation
…onym for flexible (persistent is not a synonym of stable)
….com:dfinity/motoko into claudio/stable-default-progdec-keywords-simp
Thank you for this PR! |
Maybe let me take a pass first before getting @jessiemongeon1 involved. She has tons on her plate and it might be quicker for me to revise the relevant bits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Let's merge this.
* adapt manual * upgrade examples * revert change to intro examples * revert Counter.mo * tweaks * more tweaks * more tweaks * more tweaks * more * fix message-inspection linenumbers * more tweaks * Update doc/md/reference/language-manual.md * Update doc/md/writing-motoko/writing-intro.md * Update doc/md/canister-maintenance/upgrades.md Co-authored-by: Gabor Greif <[email protected]> * Update doc/md/examples/CardShuffle.mo Co-authored-by: Gabor Greif <[email protected]> * Update doc/md/examples/PersistentCounter.mo Co-authored-by: Gabor Greif <[email protected]> * Update doc/md/examples/RawRand.mo Co-authored-by: Gabor Greif <[email protected]> * Apply suggestions from code review Co-authored-by: Gabor Greif <[email protected]> * Update doc/md/canister-maintenance/compatibility.md Co-authored-by: Jessie Mongeon <[email protected]> * Update doc/md/canister-maintenance/upgrades.md Co-authored-by: Jessie Mongeon <[email protected]> * Update doc/md/canister-maintenance/upgrades.md Co-authored-by: Jessie Mongeon <[email protected]> * Apply suggestions from code review Co-authored-by: Jessie Mongeon <[email protected]> * Apply suggestions from code review Co-authored-by: Jessie Mongeon <[email protected]> --------- Co-authored-by: Gabor Greif <[email protected]> Co-authored-by: Jessie Mongeon <[email protected]>
persistent
? actor
to switch default and transient
as synonym for flexible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great doc overhaul!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor things, otherwise LGTM!
Co-authored-by: Gabor Greif <[email protected]>
@Mergifyio update |
☑️ Nothing to do
|
This is the simplest solution with least grammar irregularities and probably least required doc changes.
persistent
andtransient
.transient
is a synonym forflexible
.persistent? actor (class) ...
flips the default fromflexible
tostable
.Parses nicely because there is no any longer ambiguity between
stable
/flexible
uses as object modifier or visibility. That means we don't need fancy and confusing grammar factoring.