Skip to content

Multi-value properties: positions' custom names #107

@vprimachenko

Description

@vprimachenko

the thing we put in the square brackets should be related to the property rather then its value(object inside). Eg a weather app

body {
    background["sky"]: @normalSky;
}

later on i can override its value without renaming:

body:rain {
    background["sky"]: @rainSky;
}

and background["city"] would stay "city" no matter if i put the skyline of Chicago or Canberra in it.

Conta: how do one make multiple such assignment in one rule?
well while this syntax

    background["sky"]: @normalSky;
    background["city"]: @defaultCity;

works but might be unsatisfiable a discussion regarding an 'assign at once' syntax was held ages ago and mentioned PHP like 'fat arrow', but with #106 in mind one could think of

    background:"sky"=@normalSky,"city"=@defaultCity;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions