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

doc: migration expressions #4845

Open
wants to merge 15 commits into
base: claudio/migration
Choose a base branch
from
Open

Conversation

crusso
Copy link
Contributor

@crusso crusso commented Jan 14, 2025

Builds on #4812.

Document migration expressions.

  • Extract examples to checkable files.
  • Review

The best way to review this is to do make preview in motoko\doc\ so you can see the inlined examples...

@crusso crusso changed the base branch from master to claudio/migration January 14, 2025 11:17
Copy link

github-actions bot commented Jan 15, 2025

Comparing from f3994a4 to ebee463:
The produced WebAssembly code seems to be completely unchanged.

@crusso crusso marked this pull request as ready for review January 20, 2025 17:05
var map : [(Nat32, OldCard)] = [];
var newMap : [(Nat32, NewCard)] = Array.map<(Nat32, OldCard), (Nat32, NewCard)>(
map,
func(key, { title }) { (key, { title; description = "<empty>" }) },
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
func(key, { title }) { (key, { title; description = "<empty>" }) },
func(key, { title }) = (key, { title; description = "<empty>" }),

@crusso crusso requested a review from a team as a code owner February 1, 2025 14:25
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