Accommodate internal initial-digit identifiers#4334
Conversation
JordanMartinez
left a comment
There was a problem hiding this comment.
To clarify, what happens if there is a top-level member named _two or _two2? Would there be a naming clash between these?
|
Oh, underscore was a poor choice, wasn't it? I'll reuse |
0617143 to
85f30ba
Compare
Yeah, I think that should work. |
The motivating example is the `xyzIsSymbol` style of variable name that can be created by `CoreFn.CSE`.
85f30ba to
6fb439c
Compare
|
On another note, should there be a golden test for this in the |
|
I think all an optimize test would do is ensure that the generated identifier looks the same, not that it doesn't collide with something else. We could write such a test but it doesn't seem to me like it would be worth it; I have a hard time imagining how the What I'd much rather have would be something like a QuickCheck property that asserts that |
Gotcha. Then, I don't think it's needed for this small fix. |
The motivating example is the
xyzIsSymbolstyle of variable name thatcan be created by
CoreFn.CSE.Description of the change
Fixes issue reported here. This is a fix for an issue triggered by an unreleased feature, so I didn't create a
fixchangelog entry for it, just aninternalentry (because the fix could potentially have consequences on things other than the new feature).Checklist: