Skip to content

$@ (Variable properties) should be documented #500

Open
@ayyash

Description

@ayyash

Under maps, section named: Using variable variables in lookups references lookups, not maps, so when I tried to apply it, the code looks like this

@foods: {
    dessert: ice cream; // Turn into a map
};
@key-to-lookup: dessert;
.lunch {
    treat: @foods[@@key-to-lookup];
}

Compilation result: variable @dessert not found. So if variable variables are not applicable to the new Maps, it should be removed from documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions