Al Liu

Results 96 comments of Al Liu

> On the one hand, it's quite easy to check this without `bytes` adding anything. And I suspect it's quite common that you've already checked the length at some point...

> I think functions like `try_slice` and `try_split_to` are not commonly used. It makes more sense for downstream users to perform manual checks. Bypassing such checks and relying on external...

> Out of curiosity, how does this differ from something like: > > pub fn first_then_many > where > I: Input, > F: Parser, > { > first.then(rest.repeated()).ignored() > }...

If we have `Chain`, it seems to be able to express this more ergonomically, just like Rust's iter combinator. ```rust first_parser().repeated().exactly(1).chain(remaining_parser().repeated()).collect() ```

This is valid because in RFCs, `gmail` may be a valid local domain name, it does not necessarily have to be a public domain.

> This sounds like something that would be useful for intranet application. Would it be possible to have an options that would make it more tailored to the activity of...