streamly icon indicating copy to clipboard operation
streamly copied to clipboard

Rename some parsers

Open harendra-kumar opened this issue 3 years ago • 1 comments
trafficstars

element can be confused with elem fold, so change it to matching, and so change except to notMatching.

one -> anyOne
element -> match, matching
except -> otherThan, matchNot, notMatching

harendra-kumar avatar Sep 19 '22 18:09 harendra-kumar

one is called head in folds. A better name for it would be next which applies equally well for folds as well as parsers. We should deprecate the head fold. There is also a one fold, we can rename that to next.

harendra-kumar avatar Sep 19 '22 18:09 harendra-kumar

See https://github.com/composewell/streamly/pull/1976

adithyaov avatar Oct 18 '22 13:10 adithyaov