Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Init expression and Init traits

Summary

We are inspired by the already successful pin-init trait and lift the initialising closure macros into a language syntax.

For this, our proposal will introduce Init traits that powers the initialisaing closures, as well as the syntax to allow users to write such closures conveniently.

The main proposal

For the main points, we will direct you to the original proposal here.

Addendum

To address some concerns and introduce enhancements, we will direct you to the addendum content here.