AndrasKovacs / flatparse

Fast parsing from bytestrings
MIT License
146 stars 12 forks source link

Clarify `posLineCols` starting index numbers and add `withAnyResult` (similar to `withError`) #59

Closed 0rphee closed 4 months ago

0rphee commented 4 months ago

Also, thinking about posLineCols: maybe it could be nice to provide variant that starts counting from 1?

AndrasKovacs commented 4 months ago

Indexing into a list of lines is a common use case, for that the 0-based index is more appropriate. People can shift indices during printing in any case.