Support dot traversal of containers.Map properties #43
Labels
No labels
bug
duplicate
enhancement/documentation
enhancement/feature
enhancement/organization
question
rejected
upstream
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
UserCurt/mpath#43
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
containers.MapexposesCount,KeyType, andValueTypeas public properties. MATLAB can access them directly, andproperties(map)lists them, but MPath currently treats them as missing.Child discovery successfully finds these property names, the issue seems further downstream.
listLengthreports 1, while executing the indexing operation fails to retrieve the value, despite how it is possible withdata.Countorsubsref(data, substruct('.', 'Count')).Note that
dictionarybehaves differently becausekeys,values, andnumEntriesare parameterless methods, not properties. Function and method invocation is outside the scope of MPath, at least for a long while.Entries of the Map (and dictionary) are out of scope. They will be accessible once parenthesis indexing is available as their values are accessible through parenthesis operations such as
map('A')rather than dot access.