← Prev in month ← Prev in thread
Next in thread → Next in month →

Can a hierarchical string be empty, or have an empty component?

From
Larry Golding \(Comcast\) <>
Date
2018-05-17T20:08:29+00:00
ID
[email protected]
Thread
Can a hierarchical string be empty, or have an empty component?
The syntax we agreed on is:

 

hierarchical string = component, { "/", component };

 

component = component character, { component character };

 

component character = ? JSON string character ? - "/";

 

If we changed it to

 

hierarchical string = component, { "/", component };

 

component = { component character };

 

component character = ? JSON string character ? - "/";

 

… then a component could be empty:

 

"foo//bar"

"foo/bar/"

"/foo/bar"

 

… and in fact the whole string could be empty:

 

""

 

Do we want to allow this?

 

For now I’m going to merge what we agreed on.

 

Larry
← Prev in month ← Prev in thread
Next in thread → Next in month →