Mutable

Adjective · Development

Definitions

  1. Describing a value or variable whose contents can be changed after creation — the default in most imperative languages but an explicit opt-in (e.g., `mut` in Rust, `var` in Swift) in languages that favor immutability for safety.

    In plain English: Something in code that you're allowed to change after you've created it.

    Example: "The compiler yelled because I forgot to mark the counter as `mut` — Rust won't let you modify an immutable binding."

Related Terms