Acton
Linting rules

E033: dict-type-use

Warns when code uses the low-level `dict` type.

Metadata

  • Code: E033
  • Rule: dict-type-use
  • Status: Stable since v0.0.1
  • Quick fix: not available

What it does

Warns when code uses the low-level dict type.

Why is this bad?

dict erases key and value types, which makes code less type-safe and harder to understand. In most cases, map<K, V> communicates intent better and gives stronger type checking.

Example

struct State {
    data: dict
E033: low-level `dict` type should be replaced with typed `map<K, V>`
}

Use instead:

struct State {
    data: map<uint32, cell>
}
Source code

Last updated on

On this page