04. Exploring Move References: Immutable and Mutable

Опубликовано: 04 Апрель 2026
на канале: Supra
112
like

Discover the world of references in the Move programming language. This comprehensive guide explores the two fundamental types of references: immutable (&) and mutable (&mut). Learn how references are created, how they enable safe data manipulation, and their role in enforcing ownership discipline. See how Move's type system prevents reference errors and promotes secure coding practices. Dive into code examples that illustrate reference usage, subtyping, and the unique characteristics of Move references.

Join us on this journey through Move's reference system, a crucial aspect of writing robust and secure smart contracts in the Move language.

00:00 Mutable vs Immutable References in Move
03:40 Freeze Inference in Move
05:20 Subtyping: Mutable as Immutable
07:40 Reference Limitations and Safety