Linting rules
E033: dict-type-use
Warns when code uses the low-level `dict` type.
Metadata
Code:E033Rule:dict-type-useStatus: Stable sincev0.0.1Quick 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}Use instead:
struct State {
data: map<uint32, cell>
}Last updated on