-
Notifications
You must be signed in to change notification settings - Fork 76
Support Comment Features #56
Comments
I have been thinking about that. So, I am guessing that lines that start with '#' would be considered comments, but not ones that had '#' somewhere later on? |
I would expect from wherever they are to the end of the line which does imply a little row edge whitespace trimming. |
Hmmh. This would be somewhat problematic from implementation perspective, for false matches -- is there actually usage examples of comments after data, as opposed to comment-only rows? |
Its something I've done (and seen) to (temporarily) omit columns and comment on a particular row's content, but I don't have a publicly available example/precedent. |
Ok; I have hoped to find sort of emerging standard, that is why I am asking. It would be nice to follow existing practices if there were some. Now: I think I am open to allowing comments anywhere; and perhaps it would be possible to allow more reliable handling by ensuring that comments can occur anywhere, but NOT inside quoted values; and to allow escaping (optional, default with backslash) hash sign. Plus it is even possible to have additional setting ("comments only for beginning of line") if there are further concerns. So I think this makes sense. One final additional thought: in addition to existing feature (good point on that btw, I hadn't realized its relevance here!), could also add a flag in |
To start off things, |
After reading documentation I could find, I further limited this so that only '#' as the first character of a line counts as a comment; this may be relaxed in future if it turns out necessary. |
Implemented, will be in 2.5.0. |
I really appreciate your work on this, though I can't ditch my hand rolled solution without the comments-anywhere feature as I have a raft of existing data. Should I open a separate feature request issue? |
Yes, please open a separate issue. Adding handling in beginning of a column |
It would be useful if
Feature.ALLOW_YAML_COMMENTS
were supported (probablyFeature.ALLOW_COMMENTS
for consistency sake).The text was updated successfully, but these errors were encountered: