Skip to content

Add mem.buffer_from_slice_panicking proc#6030

Open
Xotchkass wants to merge 1 commit intoodin-lang:masterfrom
Xotchkass:panic_on_grow
Open

Add mem.buffer_from_slice_panicking proc#6030
Xotchkass wants to merge 1 commit intoodin-lang:masterfrom
Xotchkass:panic_on_grow

Conversation

@Xotchkass
Copy link
Contributor

@Xotchkass Xotchkass commented Dec 18, 2025

Panicking on appending to a full buffer can often help to catch logical errors early. I set the parameter to false by default, so it wouldn't cause issues in existing code. I believe there shouldn't be any downsides to having it.

@gingerBill
Copy link
Member

Just make a new procedure instead of modifying an established one.

@Xotchkass Xotchkass changed the title Add panic_on_grow parameter to mem.buffer_from_slice Add mem.buffer_from_slice_panicking proc Dec 18, 2025
@Xotchkass
Copy link
Contributor Author

Ok

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