I’m exploring the nom crate atm and I’m having a great time so far!
But there is one thing I don’t get so far:
nom can work with string slices (
&str) as well as with byte slices(
&[u8]) as input.
I prefer strings as input, since my input is text, my output either parsed data or strings as well. But seeing some other projects, even though they process only text as well, all of the ones I saw so far use byte slices as input.
Is there any particular reason to this?
It doesn’t really change much to the code except that the code gets cluttered with
Thanks in advance,