Skip to content

Conversation

@nitely
Copy link
Contributor

@nitely nitely commented Sep 17, 2025

nim-faststreams has compile time support now status-im/nim-faststreams#82 .


proc readable*(s: VMInputStream): bool =
s.pos < s.data.len
proc peekChar*(s: InputStream): char {.deprecated: "use s.peek().char".} =
Copy link
Member

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

Copy link
Contributor Author

@nitely nitely Sep 25, 2025

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.

@nitely nitely merged commit 327c256 into master Sep 25, 2025
33 checks passed
@nitely nitely deleted the nitely_comptime branch September 25, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants