DonIsaac / zlint

A linter for the Zig programming language
MIT License
24 stars 1 forks source link

ban non-mutated mutable pointer function argument #77

Open kj4tmp opened 1 week ago

kj4tmp commented 1 week ago

More info: https://ziggit.dev/t/un-modified-mutable-function-argument-should-be-a-compile-error/6774

If a function accepts a mutable pointer, it should mutate the child data of the pointer

DonIsaac commented 1 week ago

Related: const-candidate