Ask HN: C with a Borrow-Checker
What would be the closest thing to C with Rust's borrow-checker? Imagine a memory-safe C that would enable "fearless concurrency", but without all the constantly moving advanced features of Rust.
I looked at Zig, but it doesn't have anything like the borrow-checker.
4 comments
[ 2.5 ms ] story [ 24.2 ms ] threadPS. I was expecting a link to a website but it is just "Ask HN" topic.
https://blog.adacore.com/using-pointers-in-spark
https://arxiv.org/pdf/1710.07047.pdf
Concurrency in Ada is very easy. I haven't used SPARK enough to be familiar with its concurrency, but it looks very similar to Ada, but with added restrictions to allow for proofs:
https://docs.adacore.com/spark2014-docs/html/ug/en/source/co...