-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove RecordPattern from the IR #109
Labels
enhancement
New feature or request
Comments
For example this snippet: distance { x, y } =
sqrt (x^2 + y^2) Can be rewritten to the following to remove the distance p =
sqrt (p.x^2 + p.y^2) |
AttilaMihaly
added a commit
to AttilaMihaly/morphir-elm
that referenced
this issue
Aug 14, 2020
AttilaMihaly
added a commit
to AttilaMihaly/morphir-elm
that referenced
this issue
Aug 14, 2020
AttilaMihaly
added a commit
to AttilaMihaly/morphir-elm
that referenced
this issue
Aug 14, 2020
AttilaMihaly
added a commit
to AttilaMihaly/morphir-elm
that referenced
this issue
Aug 14, 2020
AttilaMihaly
added a commit
to AttilaMihaly/morphir-elm
that referenced
this issue
Aug 14, 2020
sfc-gh-lfallasavendano
added a commit
to Snowflake-Labs/morphir-elm
that referenced
this issue
Dec 13, 2023
sfc-gh-lfallasavendano
added a commit
to Snowflake-Labs/morphir-elm
that referenced
this issue
Dec 13, 2023
sfc-gh-lfallasavendano
added a commit
to Snowflake-Labs/morphir-elm
that referenced
this issue
Jan 2, 2024
sfc-gh-lfallasavendano
added a commit
to Snowflake-Labs/morphir-elm
that referenced
this issue
Jan 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Record patterns provide very limited value since you cannot use them to branch out. You can only use them to make the syntax slightly more concise in certain cases. At the same time very few backends will support this and mapping it to existing features will add significant complexity.
If the lack of support ever becomes a limitation for modelers we can easily change the frontend to transparently rewrite usages to the dot notation.
The text was updated successfully, but these errors were encountered: