Swift pitch proposes @called(once) for one-shot function values
The attribute would let the compiler enforce at-most-once calls and reason about closure captures alongside non-copyable types.
By segfaultThe attribute would let the compiler enforce at-most-once calls and reason about closure captures alongside non-copyable types.
By segfaultSE-0539 would let accessor macros promise the compiler that an initializer expression will run only after self is fully available.
By rvalueThe change targets a blocker for public initializers on macro-generated structs without waiting on new synthesis syntax.
By rvalue