Improve error message in pattern matching when we forget to match the payload
Offen
Area-Diagnostics
Feature Improvement
Theme-Simple-F#
- Vorherrschende Sprache
- F#
- Sterne
- 4.3k
- Forks
- 876
- Ø Merge
- 4 T. 8 Std.
- Gemergte PRs (30 T.)
- 133
Beschreibung
type Msg =
| ShowImage of int
let update model (msg:Msg) =
match msg with
| ShowImage ->
model

this is not helpful for newcomers. We should somehow explain that the pattern needs a payload placeholder.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.