Skip to content

Add circular-buffer - #103

Merged
glennj merged 2 commits into
exercism:mainfrom
glennj:circular-buffer
Mar 19, 2026
Merged

Add circular-buffer#103
glennj merged 2 commits into
exercism:mainfrom
glennj:circular-buffer

Conversation

@glennj

@glennj glennj commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

I chose to implement "overwrite" as an option on "write"

buffer\write 3, overwrite: true

as opposed to a separate method. I though this would be an interesting wrinkle.

@BNAndras thoughts?

@BNAndras

Copy link
Copy Markdown
Member

I think yeah, that makes sense. I think overwrite was separated out for languages like Ruby that might make a distinction between destructive and non-destructive operations. That's not relevant here, and having a single write that takes options like overwrite seems to fit with the whole minimalist thing Lua has.

@glennj
glennj merged commit e450b98 into exercism:main Mar 19, 2026
5 checks passed
@glennj
glennj deleted the circular-buffer branch March 24, 2026 15:00
@BNAndras BNAndras added the x:module/practice-exercise Work on Practice Exercises label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:module/practice-exercise Work on Practice Exercises

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants