-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
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;