Why Switch statements in Dart are intended for limited circumstances, such as in interpreters or scanners?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/dartlang

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • GitHub repo language

    Design of the Dart language

    The switch statement in Dart is quite limited and verbose. But if/when the pattern feature lands, this might change.

  • GitHub repo site-www

    Source for Dart website

    We're tracking this issue in https://github.com/dart-lang/site-www/issues/2830.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts