26 ms·
The void value. E.g. fn f() {} let mut v: () = f(); fn g(a: ()) { a } V = g(v); > Maybe my imagination is failing me, but I can't see how this
by masklinn 2y ago
The void value. E.g.
fn f() {}
let mut v: () = f();
fn g(a: ()) { a }
V = g(v);
> Maybe my imagination is failing me, but I can't see how this can do much good without at least polymorphic functions.
Sure, it doesn’t do much useful to C save make void ever so slightly less wonky.