3 ms·
Probably an error! Should create a ticket for that. What would we want the behavior to be? (This hasn't come up with existing customers because theoretically i
by memset 3y ago
Probably an error! Should create a ticket for that. What would we want the behavior to be?
(This hasn't come up with existing customers because theoretically it could and we should handle it.)
- namtab00 3y agomaybe double the underscore on conflict? some_key =1 some__key = 2
- memset 3y agoAgree. (What if the original users key has the double underscore?) maybe this can be defined as a param?
- namtab00 3y ago> What if the original users key has the double underscore? Double it again. some_key = 1 some__key = 2 some____key = 3 This is analogous to what C#11 does to allow raw string literal quotes containing those same quotes. https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/reference-types#string-literals https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...
- dicriseg 3y agoThe convention when flattening is exactly that I thought - an underscore per level of nesting. This is what I would expect to see too.
- gostsamo 3y agoescape the underscore. this is the only sane one, I think.