microparsec icon indicating copy to clipboard operation
microparsec copied to clipboard

Support char -> string similarly to T -> seq[T]

Open schneiderfelipe opened this issue 3 years ago • 0 comments

That shows up when things get nested, e.g., when we start getting things like seq[seq[char]], which should be seq[string], since seq[char] is close enough to string, but seq[seq[char]] is not comparable to seq[string].

EDIT: it might not scale well to overload each procedure, so it would be nice to have templates to define both functions every time. The idea is to have every procedure that returns seq[T] to return string when T = char, using simple placeholders.

schneiderfelipe avatar Jun 21 '21 17:06 schneiderfelipe