# std: fix Reader.readUntilDelimiterOrEofAlloc\(\) API · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3634d44d08c73326c7783cf2a3095acb50eb2e1c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3634d44d08c73326c7783cf2a3095acb50eb2e1c

Requested commit: 3634d44d08c73326c7783cf2a3095acb50eb2e1c

Commit: 3634d44d08c73326c7783cf2a3095acb50eb2e1c

Tree: 90e6ddf5f7e41e84f93ab4776a8252e979b5f379

Author: Isaac Freund

Committer: Andrew Kelley

## Message

```
std: fix Reader.readUntilDelimiterOrEofAlloc() API

The current API does not allow the user to distinguish between EOF and
an empty line. Reader.readUntilDelimiterOrEof() gets this API right so
update readUntilDelimiterOrEofAlloc() to match it. Returning an optional
here additionally makes calling this in a loop much cleaner.

Remove readUntilDelimiterOrEofArrayList() as it no longer needed to
implement readUntilDelimiterOrEof() and has the same API issues
described without a clear way to fix them.

```

## Parents

- [3d79ae2be307372ca309e92f622a8f607ebeb926](https://git.cafe/gitcafe/zig/commit/3d79ae2be307372ca309e92f622a8f607ebeb926?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3634d44d08c73326c7783cf2a3095acb50eb2e1c?format=markdown)
