Skip to content
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

circular-buffer: Overwrite operation is not clear #889

Closed
shaleh opened this issue Aug 30, 2017 · 3 comments
Closed

circular-buffer: Overwrite operation is not clear #889

shaleh opened this issue Aug 30, 2017 · 3 comments

Comments

@shaleh
Copy link

shaleh commented Aug 30, 2017

The text says that The client can opt to overwrite the oldest data with a forced write. What it does not say is that this is only expected to happen when the buffer is full. The example shows this but the description does not make it clear. Basically overwrite is just write unless the buffer is full.

@ErikSchierboom
Copy link
Member

@shaleh Would you be interested in creating a PR to fix this issue?

@shaleh
Copy link
Author

shaleh commented Sep 7, 2017 via email

shaleh pushed a commit to shaleh/exercism-problem-specifications that referenced this issue Sep 7, 2017
As discussed in exercism#889, the documentation for the overwrite operation
was vague. overwrite replaces the oldest element in the buffer if the
buffer is full and is just a normal write if there is space available.
@shaleh
Copy link
Author

shaleh commented Sep 7, 2017

PR uploaded

@tleen tleen closed this as completed in dea5801 Sep 7, 2017
shaleh pushed a commit to shaleh/exercism-problem-specifications that referenced this issue Sep 21, 2017
As discussed in exercism#889, the documentation for the overwrite operation
was vague. overwrite replaces the oldest element in the buffer if the
buffer is full and is just a normal write if there is space available.

Overwrite replaces the oldest item in the buffer if the buffer is
empty. Otherwise it is just like write. This commit documents what
overwrite on a buffer with available space looks like and clarifies
what the oldest element is after an overwrite operation succeeds.

Closes exercism#889
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

No branches or pull requests

2 participants