Is there a standard way to name a function that reads from a stream but does not advance the pointer?

I can only think about Peek () and ReadNoAdvance () atm, but I'm wondering if there are better or standard options.

Thank.

+3
source share
3 answers

peek is a standard name provided in different languages.

+12
source

I saw ReadAhead (), but I think Peek () is more standard.

+2
source

When writing parsers, I often used lookahead.

+1
source

All Articles