jfmengels/elm-review-simplify
Voir sur GitHubMerging of let..in can lead to naming collisions
Open
#313 ouverte le 26 juin 2024
bughelp wanted
Métriques du dépôt
- Stars
- (22 stars)
- Métriques de merge PR
- (Métriques PR en attente)
Description
SSCCE
value =
let
a name = name
in
let
name = "str"
in
a name
Currently, this gets simplified to the following, which introduces a naming collision error from the compiler.
value =
let
a name = name
name = "str"
in
a name
I think the solution would be to check that there will be no collisions, but this is quite a bit of analysis compared to what is done today. I wonder if there's a smart way of doing it :thinking: