logoalt Hacker News

dnauticstoday at 6:00 PM1 replyview on HN

zig does have plans to give access to IRs when stable so adding a borrow checker to zig will be even easier than it is now


Replies

gpmtoday at 7:30 PM

This is cool and will likely enable some cool tooling.

I don't think a borrow checker is likely to be in that tooling. Borrow checking requires shaping the code, and all the dependencies, into easily analyzable (and at least in rust's version annotated) patterns. You can't borrow check arbitrary code not designed for it without false positives.

show 1 reply