-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix tidySymbol
to not drop arg-id
#659
Conversation
@@ -518,7 +518,7 @@ tidySymbol s | |||
| otherwise = s'' | |||
where | |||
s' = unPrefixSymbol kArgPrefix s | |||
s'' = unPrefixSymbol symSepName . unPrefixSymbol hvarPrefix $ s' | |||
s'' = consSym '$' . unPrefixSymbol symSepName . unSuffixSymbol . unPrefixSymbol hvarPrefix $ s' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm out of my depth here, but I just wanted to suggest adding a comment to tidySymbol
explaining what it is meant to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And similar suggestion for the other functions modified in the PR. Alternatively, perhaps the source code could be made more self explanatory if the structure of the symbols is explained in a comment.
Excellent suggestion @facundo, will do!
…On Sat, Nov 4, 2023 at 8:45 AM Facundo Domínguez ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/Language/Fixpoint/Types/Names.hs
<https://urldefense.com/v3/__https://github.com/ucsd-progsys/liquid-fixpoint/pull/659*discussion_r1382420428__;Iw!!Mih3wA!HmfM8YSx-cb_SZp0RiSayMOc2wUkoIWw_cQ1zJDc2Rqli0zCuv2yOroFyFIzaQvfwFHzOIKZd4D-vS0uXYKXC19x$>
:
> @@ -518,7 +518,7 @@ tidySymbol s
| otherwise = s''
where
s' = unPrefixSymbol kArgPrefix s
- s'' = unPrefixSymbol symSepName . unPrefixSymbol hvarPrefix $ s'
+ s'' = consSym '$' . unPrefixSymbol symSepName . unSuffixSymbol . unPrefixSymbol hvarPrefix $ s'
And similar suggestion for the other functions modified in the PR.
Alternatively, perhaps the source code could be made more self explanatory
if the structure of the symbols is explained in a comment.
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/ucsd-progsys/liquid-fixpoint/pull/659*discussion_r1382420428__;Iw!!Mih3wA!HmfM8YSx-cb_SZp0RiSayMOc2wUkoIWw_cQ1zJDc2Rqli0zCuv2yOroFyFIzaQvfwFHzOIKZd4D-vS0uXYKXC19x$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAMS4OGMADGP5S5JEHMD2FTYCZPKDAVCNFSM6AAAAAA65UKPBWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOMJTHAYTIMRXGA__;!!Mih3wA!HmfM8YSx-cb_SZp0RiSayMOc2wUkoIWw_cQ1zJDc2Rqli0zCuv2yOroFyFIzaQvfwFHzOIKZd4D-vS0uXT1Zlrtf$>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
unKArgSymbol
for matching qual-patternsfixes #658