-
Notifications
You must be signed in to change notification settings - Fork 10
Use faststreams comptime support #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
toml_serialization/types.nim
Outdated
|
|
||
| proc readable*(s: VMInputStream): bool = | ||
| s.pos < s.data.len | ||
| proc peekChar*(s: InputStream): char {.deprecated: "use s.peek().char".} = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toml is text based so it stands to reason to have a dedicated char peeker - that said, I don't know that utf8 is being validated correctly when using it so one could also argue we should not have this .. hm .. cc @jangko
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the original required peekChar(VMInputStream(s)), but VMInputStream got removed, so I think it's fine to remove peekChar too. If anything peekChar(InputStream) should be defined in faststreams textio module I think. There is also peekChar(TomlLexer) already.
nim-faststreams has compile time support now status-im/nim-faststreams#82 .