Skip to content

[Feature Request] Lint again initial(thing.var), where var is a list #284

@Mothblocks

Description

@Mothblocks

The following code is never correct:

/datum/species
    var/list/allowed_traits = list(1, 2, 3)

/proc/do_something(datum/species/species_type)
    if (1 in initial(species.allowed_traits))

...because lists are made on init, the initial value is always null.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions