Skip to content

IIP-0011: Core Move View Functions#43

Open
lollobene wants to merge 6 commits into
mainfrom
iip-0011-core-move-view-functions
Open

IIP-0011: Core Move View Functions#43
lollobene wants to merge 6 commits into
mainfrom
iip-0011-core-move-view-functions

Conversation

@lollobene
Copy link
Copy Markdown
Contributor

This PR introduces the first draft for IIP-0011

Discussion #42

Comment thread iips/IIP-0011/IIP-0011.md
Comment thread iips/IIP-0011/IIP-0011.md
@lzpap lzpap force-pushed the iip-0011-core-move-view-functions branch from feb5b9e to 727a814 Compare April 28, 2026 11:00
@lzpap lzpap force-pushed the iip-0011-core-move-view-functions branch from 727a814 to 9337b94 Compare April 28, 2026 11:01
Comment thread iips/IIP-0011/IIP-0011.md Outdated
Comment thread iips/IIP-0011/IIP-0011.md Outdated
Comment thread iips/IIP-0011/IIP-0011.md Outdated
Comment thread iips/IIP-0011/IIP-0011.md Outdated
Comment thread iips/IIP-0011/IIP-0011.md Outdated
Comment thread iips/IIP-0011/IIP-0011.md
Comment thread iips/IIP-0011/IIP-0011.md Outdated
Comment thread iips/IIP-0011/IIP-0011.md Outdated
Comment thread iips/IIP-0011/IIP-0011.md Outdated
Comment thread iips/IIP-0011/IIP-0011.md
@lollobene lollobene removed the request for review from alexsporn May 6, 2026 08:27
…ng changed

Tighten the #[view] definition and rules to forbid returning references (in addition to IOTA objects). Update the compiler guidance to allow emitting warnings (SHOULD -> MAY) for unannotated view-like functions. Replace and expand the examples: the valid/invalid Move modules were overhauled with many more structs and function cases (generics, vectors, options, native functions, templates, and various illegal patterns) to demonstrate allowed patterns (immutable refs, primitive and store-only returns) and disallowed ones (mutable refs, objects by value, returns of objects or references, TxContext mutable refs, etc.).
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.

[move] Write a new IIP for the Move View Function attribute in the language

3 participants