|
|
Log in / Subscribe / Register

Void is surprisingly useful.

Void is surprisingly useful.

Posted Sep 13, 2026 11:31 UTC (Sun) by alx.manpages (subscriber, #145117)
In reply to: Void is surprisingly useful. by koflerdavid
Parent article: Stabilizing Rust's never type

Another --more interesting-- example is with the ternary operator:

#define assert(e)  ((e) ? (void)0 : abort())


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds