Skip to content

Revert "Fix compile error in circular buffer (#280)"#282

Closed
kahgoh wants to merge 1 commit intoexercism:mainfrom
kahgoh:revert/circular-buffer-fix
Closed

Revert "Fix compile error in circular buffer (#280)"#282
kahgoh wants to merge 1 commit intoexercism:mainfrom
kahgoh:revert/circular-buffer-fix

Conversation

@kahgoh
Copy link
Copy Markdown
Member

@kahgoh kahgoh commented Nov 2, 2025

This reverts commit 8f805f5 for #277.

The reason for this is because I just received notification that this has been fixed in the V compiler (see vlang/v#25645 and vlang/v#25585).

Feel free to close this PR without merging if you feel we should keep the fix that was added instead.

This reverts commit 8f805f5.

Just received notification that this has been fixed in the V compiler
(see vlang/v#25645).
@keiravillekode
Copy link
Copy Markdown
Contributor

I don't mind.

We could replace the example solution with something like
https://exercism.org/tracks/vlang/exercises/circular-buffer/solutions/keiraville
or something resembling one of the other community solutions, so that
read and write complete in O(1) time.

@kahgoh
Copy link
Copy Markdown
Member Author

kahgoh commented Nov 2, 2025

Happy to use one that completes in O(1), but there's something I am wondering about - which operation in the current example doesn't finish in O(1)? Is it the prepend or pop?

@kahgoh
Copy link
Copy Markdown
Member Author

kahgoh commented Mar 1, 2026

I think I'll close this PR without merging. I don't think the change is important as the example only serves to show the exercise can be solved in V and isn't really end user facing.

@kahgoh kahgoh closed this Mar 1, 2026
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