Closed onmyway133 closed 8 years ago
Example: we have 2 routes
a:b:{c} a:b
and a urn a:b, then what route should we match?
a:b
Removing optional arguments makes it explicit to declare the route by always matching the number of components
Example: we have 3 routes
a:b:c a:b:{c} a:{b}:{c}
and a urn a:b:c, then we should select route a:b:c
a:b:c
This is rare, actually
@onmyway133 this is very interesting! Great job with the improvements. 😎
Example: we have 2 routes
and a urn
a:b
, then what route should we match?Removing optional arguments makes it explicit to declare the route by always matching the number of components
Example: we have 3 routes
and a urn
a:b:c
, then we should select routea:b:c
This is rare, actually