We currently call ispathtype for each registered path type and then call it's constructor with a string. I think the better way to do this would be to simply call tryparse(T, str) until our result isn't nothing. This would likely simplify the code and tryparse is probably something the path types should support anyways.
We currently call
ispathtypefor each registered path type and then call it's constructor with a string. I think the better way to do this would be to simply calltryparse(T, str)until our result isn'tnothing. This would likely simplify the code andtryparseis probably something the path types should support anyways.