logoalt Hacker News

weinzierlyesterday at 8:57 PM1 replyview on HN

Endianness and pointer casts are the mechanical part and I would expect Zig to emulate them correctly.

Other parts, like floats are harder. This is where a difference shows. Rust is like: "Sorry, since we cannot uphold our guarantees, no transcendentals for you at comptime ", whereas Zig is chill about that and let you have your transcendentals even if results may differ between comptime and runtime. Different mindsets.


Replies

simonaskyesterday at 9:23 PM

Just to note, Rust has had compile-time floats for a while now, but yes.

show 1 reply