Paths to the seach visitors could be simplified #9
Loading…
Add table
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?
Visitor supports path entries like
/[[2]]
for example to mean the 3rd element in an array. I think I can safely remove the[[ ]]
around the number as all the visitor has to do is to grab an index while sitting on an array node. If it got anything other than a number that would be a mistake, likewise getting a number while on a map node for example would return an error unless by coincidence there was a key in that map that matched the number. Right now there is also no special error detection code on the map case and I believe2
and[[2]]
are equally unlikely keys for a map in a torrent file.