pub const MUTATING_LIST_METHODS: &[&str];Expand description
The in-place List mutators (DQ18) lowered natively per target via
desugared_list_mutating_method. These resolve in the checker to a Void
return and require a mut receiver (enforced by the ownership pass), so each
backend emits them in statement position as a value-less mutation:
- rust / js / ts:
recv.push(x) - python:
recv.append(x) - go:
recv = append(recv, x)(slice growth is reassignment in Go; themutreceiver guaranteesrecvis a valid lvalue — alet mutbinding or a mutable field place)
append is Bock’s spelling alias for push; both lower identically.