Skip to content

Add circular-buffer#103

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

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

Conversation

@glennj
Copy link
Contributor

@glennj glennj commented Mar 18, 2026

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
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
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

Successfully merging this pull request may close these issues.

2 participants