Replies: 3 comments 14 replies
-
That's only the case when placing the terminating brace on the same line as a child node. I think it could be worth considering to allow the latter example, but encouraging placement of children on the same line feels like it could be an anti-pattern. At the end of the day, requiring a single character extra in a corner case doesn't feel like it's terribly user-impacting. |
Beta Was this translation helpful? Give feedback.
-
Just FYI. I found there is an issue discussing the same thing: kdl-org/kdl-rs#11 . The issue seems like a spec compliance bug if I understand the issue above correctly. |
Beta Was this translation helpful? Give feedback.
-
What's the proposed grammar for this? |
Beta Was this translation helpful? Give feedback.
-
Hello! KDL looks interesting!
One of the benefits of having closing curly bases should be that it is obvious when a statement ends.
Unfortunately the KDL grammar seems to force me to explicitly end the statement (at least in my experiments and my skim of the grammar:
object1 {object2;}
Rather than:
object1 {object2}
I had thought that the use of semi-colon as terminator, rather than separator, had gone out of fashion. At least in languages where semicolons are usually optional.
What benefit does the end-user get from the grammar requiring a statement terminator? Would you consider making it optional, even at a cost of complicating the text of the grammar?
Beta Was this translation helpful? Give feedback.
All reactions