Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: