Closed epage closed 2 months ago
In reading through the docs, I realized I would sometimes insert the word "capture" which I think works well as a parallel to regex.
Why not use concat
for naming.
Related links: https://doc.rust-lang.org/stable/std/macro.concat.html
That works if you are doing (parser1, parser2).concat()
but if you are doing parser1.concat()
, it no longer makes sense.
Looking at #489 is reminding me that we also use take
to mean "capture a slice".
take
and with_taken
(dislike the latter)take
methods to capture
For now at least, I lean towards take
/ with_taken
. Capture works well but is longer.
We have
Parser::recognize
,Parser::with_recognize
, and use of "recognize" in various parsers (especiallytoken
)The leap from the word and its meaning is unclear
See also #95