Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 396 Bytes

File metadata and controls

8 lines (5 loc) · 396 Bytes

EOF

The EOF signal, is used to represent the end of the Parse.

It is represented as different from an Error, to make it clear that this needs to be checked and will be signaled in a checkable way.

For example, in Golang, we represent this inside the error type, but it is checkable via: err == io.EOF. Other languages might prefered a separate EOF value in sum type of their own.