Sorting record members first on the length of the key#1211
Sorting record members first on the length of the key#1211rajdakin wants to merge 1 commit intolinks-lang:masterfrom
Conversation
dhil
left a comment
There was a problem hiding this comment.
The implementation of this fix adds a string map which has a different compare function: it first sorts keys on length, then on the content.
I am not sure we want this. I'd think it should be sufficient to localise this change to type printing only.
|
The root issue is that
I have also tried to look into implementing the third solution, but I believe there exists/existed some use case for types other than Note that this PR not only fixes #1210, but also the issue that the |
|
Thanks for the clarification. I see. I think we need to discuss which kind of design to adopt here. Because the change is pervasive. |
This PR fixes #1210 and the order of the
fn_paramsmember of the function descriptor.The implementation of this fix adds a string map which has a different
comparefunction: it first sorts keys on length, then on the content. This way, the string10is sorted after the string2. This map is then used inRowtypes.