Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Align match behavior with case/== #11935

Merged
merged 1 commit into from
May 18, 2018
Merged

[core] Align match behavior with case/== #11935

merged 1 commit into from
May 18, 2018

Commits on May 18, 2018

  1. [core] Align match behavior with case/==

    Makes `["match", ["get", k], label, match, otherwise]` equivalent to `["case", ["==", ["get", k], label], match, otherwise]`. This changes the behavior of match expressions where the runtime type of the input does not match the type of the labels: previously such expressions produced a runtime type error and then fell back to the property default value; now they produce the fallback value from the match expression.
    jfirebaugh committed May 18, 2018
    Configuration menu
    Copy the full SHA
    98851af View commit details
    Browse the repository at this point in the history