Hacker News new | ask | show | jobs
by krukah 12 days ago
It's where Zig outshines Rust the most, IMO.

TBF Rust v1.100 makes a big leap in permitting custom allocators, but mandating would be ideal in the spirit of "explicit is better implicit". I like adding lints to defend against some of these footguns, but more compiler-driven transparency around quiet allocations would be so nice.

1 comments

Another thing is that passing in the IO backend to mark whether a function is pure or not is also kind of genius.

This would unlock even more function reordering in Rust, but the ship has sailed on that one.