News for hackers. Stuff that matters.
Re:A Grand Vision for Rust by ben-schaaf on Monday March 09, 2026 @09:13AM (#47308623)
I can't find anything related to division returning an error type. Looking at std.math.divExact, rem, mod, add, sub, etc. it looks to me like you're expected to use these if you don't want to panic.
Re:A Grand Vision for Rust by Turskarama on Monday March 09, 2026 @09:41AM (#47308967)
Actually you're right, I was going by the source code which was in the link of the comment you replied to, but I missed that that was specifically for divExact and not just primitive division.
Re:A Grand Vision for Rust by MaulingMonkey on Monday March 09, 2026 @03:34PM (#47314260)